Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationXML(r *runtime.ClientOperation)
- func WithAcceptTextJSON(r *runtime.ClientOperation)
- func WithAcceptTextXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationXML(r *runtime.ClientOperation)
- func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
- func WithContentTypeTextJSON(r *runtime.ClientOperation)
- func WithContentTypeTextXML(r *runtime.ClientOperation)
- type Client
- type ClientOption
- type ClientService
- type JournalPostGLAccountOK
- func (o *JournalPostGLAccountOK) Code() int
- func (o *JournalPostGLAccountOK) Error() string
- func (o *JournalPostGLAccountOK) GetPayload() int32
- func (o *JournalPostGLAccountOK) IsClientError() bool
- func (o *JournalPostGLAccountOK) IsCode(code int) bool
- func (o *JournalPostGLAccountOK) IsRedirect() bool
- func (o *JournalPostGLAccountOK) IsServerError() bool
- func (o *JournalPostGLAccountOK) IsSuccess() bool
- func (o *JournalPostGLAccountOK) String() string
- type JournalPostGLAccountParams
- func NewJournalPostGLAccountParams() *JournalPostGLAccountParams
- func NewJournalPostGLAccountParamsWithContext(ctx context.Context) *JournalPostGLAccountParams
- func NewJournalPostGLAccountParamsWithHTTPClient(client *http.Client) *JournalPostGLAccountParams
- func NewJournalPostGLAccountParamsWithTimeout(timeout time.Duration) *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) SetContext(ctx context.Context)
- func (o *JournalPostGLAccountParams) SetDefaults()
- func (o *JournalPostGLAccountParams) SetHTTPClient(client *http.Client)
- func (o *JournalPostGLAccountParams) SetJournals(journals []*model.Journal)
- func (o *JournalPostGLAccountParams) SetTimeout(timeout time.Duration)
- func (o *JournalPostGLAccountParams) WithContext(ctx context.Context) *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) WithDefaults() *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) WithHTTPClient(client *http.Client) *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) WithJournals(journals []*model.Journal) *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) WithTimeout(timeout time.Duration) *JournalPostGLAccountParams
- func (o *JournalPostGLAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type JournalPostGLAccountReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationXML ¶
func WithAcceptApplicationXML(r *runtime.ClientOperation)
WithAcceptApplicationXML sets the Accept header to "application/xml".
func WithAcceptTextJSON ¶
func WithAcceptTextJSON(r *runtime.ClientOperation)
WithAcceptTextJSON sets the Accept header to "text/json".
func WithAcceptTextXML ¶
func WithAcceptTextXML(r *runtime.ClientOperation)
WithAcceptTextXML sets the Accept header to "text/xml".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationXML ¶
func WithContentTypeApplicationXML(r *runtime.ClientOperation)
WithContentTypeApplicationXML sets the Content-Type header to "application/xml".
func WithContentTypeApplicationxWwwFormUrlencoded ¶
func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)
WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".
func WithContentTypeTextJSON ¶
func WithContentTypeTextJSON(r *runtime.ClientOperation)
WithContentTypeTextJSON sets the Content-Type header to "text/json".
func WithContentTypeTextXML ¶
func WithContentTypeTextXML(r *runtime.ClientOperation)
WithContentTypeTextXML sets the Content-Type header to "text/xml".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for journal API
func (*Client) JournalPostGLAccount ¶
func (a *Client) JournalPostGLAccount(params *JournalPostGLAccountParams, opts ...ClientOption) (*JournalPostGLAccountOK, error)
JournalPostGLAccount journal post g l account API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface {
JournalPostGLAccount(params *JournalPostGLAccountParams, opts ...ClientOption) (*JournalPostGLAccountOK, 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 journal API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new journal API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new journal API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type JournalPostGLAccountOK ¶
type JournalPostGLAccountOK struct {
Payload int32
}
JournalPostGLAccountOK describes a response with status code 200, with default header values.
Import a list of journals
func NewJournalPostGLAccountOK ¶
func NewJournalPostGLAccountOK() *JournalPostGLAccountOK
NewJournalPostGLAccountOK creates a JournalPostGLAccountOK with default headers values
func (*JournalPostGLAccountOK) Code ¶
func (o *JournalPostGLAccountOK) Code() int
Code gets the status code for the journal post g l account o k response
func (*JournalPostGLAccountOK) Error ¶
func (o *JournalPostGLAccountOK) Error() string
func (*JournalPostGLAccountOK) GetPayload ¶
func (o *JournalPostGLAccountOK) GetPayload() int32
func (*JournalPostGLAccountOK) IsClientError ¶
func (o *JournalPostGLAccountOK) IsClientError() bool
IsClientError returns true when this journal post g l account o k response has a 4xx status code
func (*JournalPostGLAccountOK) IsCode ¶
func (o *JournalPostGLAccountOK) IsCode(code int) bool
IsCode returns true when this journal post g l account o k response a status code equal to that given
func (*JournalPostGLAccountOK) IsRedirect ¶
func (o *JournalPostGLAccountOK) IsRedirect() bool
IsRedirect returns true when this journal post g l account o k response has a 3xx status code
func (*JournalPostGLAccountOK) IsServerError ¶
func (o *JournalPostGLAccountOK) IsServerError() bool
IsServerError returns true when this journal post g l account o k response has a 5xx status code
func (*JournalPostGLAccountOK) IsSuccess ¶
func (o *JournalPostGLAccountOK) IsSuccess() bool
IsSuccess returns true when this journal post g l account o k response has a 2xx status code
func (*JournalPostGLAccountOK) String ¶
func (o *JournalPostGLAccountOK) String() string
type JournalPostGLAccountParams ¶
type JournalPostGLAccountParams struct {
// Journals.
Journals []*model.Journal
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
JournalPostGLAccountParams contains all the parameters to send to the API endpoint
for the journal post g l account operation. Typically these are written to a http.Request.
func NewJournalPostGLAccountParams ¶
func NewJournalPostGLAccountParams() *JournalPostGLAccountParams
NewJournalPostGLAccountParams creates a new JournalPostGLAccountParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewJournalPostGLAccountParamsWithContext ¶
func NewJournalPostGLAccountParamsWithContext(ctx context.Context) *JournalPostGLAccountParams
NewJournalPostGLAccountParamsWithContext creates a new JournalPostGLAccountParams object with the ability to set a context for a request.
func NewJournalPostGLAccountParamsWithHTTPClient ¶
func NewJournalPostGLAccountParamsWithHTTPClient(client *http.Client) *JournalPostGLAccountParams
NewJournalPostGLAccountParamsWithHTTPClient creates a new JournalPostGLAccountParams object with the ability to set a custom HTTPClient for a request.
func NewJournalPostGLAccountParamsWithTimeout ¶
func NewJournalPostGLAccountParamsWithTimeout(timeout time.Duration) *JournalPostGLAccountParams
NewJournalPostGLAccountParamsWithTimeout creates a new JournalPostGLAccountParams object with the ability to set a timeout on a request.
func (*JournalPostGLAccountParams) SetContext ¶
func (o *JournalPostGLAccountParams) SetContext(ctx context.Context)
SetContext adds the context to the journal post g l account params
func (*JournalPostGLAccountParams) SetDefaults ¶
func (o *JournalPostGLAccountParams) SetDefaults()
SetDefaults hydrates default values in the journal post g l account params (not the query body).
All values with no default are reset to their zero value.
func (*JournalPostGLAccountParams) SetHTTPClient ¶
func (o *JournalPostGLAccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the journal post g l account params
func (*JournalPostGLAccountParams) SetJournals ¶
func (o *JournalPostGLAccountParams) SetJournals(journals []*model.Journal)
SetJournals adds the journals to the journal post g l account params
func (*JournalPostGLAccountParams) SetTimeout ¶
func (o *JournalPostGLAccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the journal post g l account params
func (*JournalPostGLAccountParams) WithContext ¶
func (o *JournalPostGLAccountParams) WithContext(ctx context.Context) *JournalPostGLAccountParams
WithContext adds the context to the journal post g l account params
func (*JournalPostGLAccountParams) WithDefaults ¶
func (o *JournalPostGLAccountParams) WithDefaults() *JournalPostGLAccountParams
WithDefaults hydrates default values in the journal post g l account params (not the query body).
All values with no default are reset to their zero value.
func (*JournalPostGLAccountParams) WithHTTPClient ¶
func (o *JournalPostGLAccountParams) WithHTTPClient(client *http.Client) *JournalPostGLAccountParams
WithHTTPClient adds the HTTPClient to the journal post g l account params
func (*JournalPostGLAccountParams) WithJournals ¶
func (o *JournalPostGLAccountParams) WithJournals(journals []*model.Journal) *JournalPostGLAccountParams
WithJournals adds the journals to the journal post g l account params
func (*JournalPostGLAccountParams) WithTimeout ¶
func (o *JournalPostGLAccountParams) WithTimeout(timeout time.Duration) *JournalPostGLAccountParams
WithTimeout adds the timeout to the journal post g l account params
func (*JournalPostGLAccountParams) WriteToRequest ¶
func (o *JournalPostGLAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type JournalPostGLAccountReader ¶
type JournalPostGLAccountReader struct {
// contains filtered or unexported fields
}
JournalPostGLAccountReader is a Reader for the JournalPostGLAccount structure.
func (*JournalPostGLAccountReader) ReadResponse ¶
func (o *JournalPostGLAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.