Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) VoucherMessagePost(params *VoucherMessagePostParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessagePostCreated, error)
- func (a *Client) VoucherMessageSearch(params *VoucherMessageSearchParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessageSearchOK, error)
- type ClientService
- type VoucherMessagePostCreated
- type VoucherMessagePostParams
- func NewVoucherMessagePostParams() *VoucherMessagePostParams
- func NewVoucherMessagePostParamsWithContext(ctx context.Context) *VoucherMessagePostParams
- func NewVoucherMessagePostParamsWithHTTPClient(client *http.Client) *VoucherMessagePostParams
- func NewVoucherMessagePostParamsWithTimeout(timeout time.Duration) *VoucherMessagePostParams
- func (o *VoucherMessagePostParams) SetBody(body *models.VoucherMessage)
- func (o *VoucherMessagePostParams) SetContext(ctx context.Context)
- func (o *VoucherMessagePostParams) SetHTTPClient(client *http.Client)
- func (o *VoucherMessagePostParams) SetTimeout(timeout time.Duration)
- func (o *VoucherMessagePostParams) WithBody(body *models.VoucherMessage) *VoucherMessagePostParams
- func (o *VoucherMessagePostParams) WithContext(ctx context.Context) *VoucherMessagePostParams
- func (o *VoucherMessagePostParams) WithHTTPClient(client *http.Client) *VoucherMessagePostParams
- func (o *VoucherMessagePostParams) WithTimeout(timeout time.Duration) *VoucherMessagePostParams
- func (o *VoucherMessagePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VoucherMessagePostReader
- type VoucherMessageSearchOK
- type VoucherMessageSearchParams
- func NewVoucherMessageSearchParams() *VoucherMessageSearchParams
- func NewVoucherMessageSearchParamsWithContext(ctx context.Context) *VoucherMessageSearchParams
- func NewVoucherMessageSearchParamsWithHTTPClient(client *http.Client) *VoucherMessageSearchParams
- func NewVoucherMessageSearchParamsWithTimeout(timeout time.Duration) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) SetContext(ctx context.Context)
- func (o *VoucherMessageSearchParams) SetCount(count *int64)
- func (o *VoucherMessageSearchParams) SetFields(fields *string)
- func (o *VoucherMessageSearchParams) SetFrom(from *int64)
- func (o *VoucherMessageSearchParams) SetHTTPClient(client *http.Client)
- func (o *VoucherMessageSearchParams) SetSorting(sorting *string)
- func (o *VoucherMessageSearchParams) SetTimeout(timeout time.Duration)
- func (o *VoucherMessageSearchParams) SetVoucherIds(voucherIds *string)
- func (o *VoucherMessageSearchParams) WithContext(ctx context.Context) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithCount(count *int64) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithFields(fields *string) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithFrom(from *int64) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithHTTPClient(client *http.Client) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithSorting(sorting *string) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithTimeout(timeout time.Duration) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WithVoucherIds(voucherIds *string) *VoucherMessageSearchParams
- func (o *VoucherMessageSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type VoucherMessageSearchReader
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 voucher message API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) VoucherMessagePost ¶
func (a *Client) VoucherMessagePost(params *VoucherMessagePostParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessagePostCreated, error)
VoucherMessagePost bs e t a post new voucher message
func (*Client) VoucherMessageSearch ¶
func (a *Client) VoucherMessageSearch(params *VoucherMessageSearchParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessageSearchOK, error)
VoucherMessageSearch bs e t a find voucher message or a comment put on a voucher by inputting voucher ids
type ClientService ¶
type ClientService interface { VoucherMessagePost(params *VoucherMessagePostParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessagePostCreated, error) VoucherMessageSearch(params *VoucherMessageSearchParams, authInfo runtime.ClientAuthInfoWriter) (*VoucherMessageSearchOK, 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 voucher message API client.
type VoucherMessagePostCreated ¶
type VoucherMessagePostCreated struct {
Payload *models.ResponseWrapperVoucherMessage
}
VoucherMessagePostCreated handles this case with default header values.
successfully created
func NewVoucherMessagePostCreated ¶
func NewVoucherMessagePostCreated() *VoucherMessagePostCreated
NewVoucherMessagePostCreated creates a VoucherMessagePostCreated with default headers values
func (*VoucherMessagePostCreated) Error ¶
func (o *VoucherMessagePostCreated) Error() string
func (*VoucherMessagePostCreated) GetPayload ¶
func (o *VoucherMessagePostCreated) GetPayload() *models.ResponseWrapperVoucherMessage
type VoucherMessagePostParams ¶
type VoucherMessagePostParams struct { /*Body JSON representing the new object to be created. Should not have ID and version set. */ Body *models.VoucherMessage Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VoucherMessagePostParams contains all the parameters to send to the API endpoint for the voucher message post operation typically these are written to a http.Request
func NewVoucherMessagePostParams ¶
func NewVoucherMessagePostParams() *VoucherMessagePostParams
NewVoucherMessagePostParams creates a new VoucherMessagePostParams object with the default values initialized.
func NewVoucherMessagePostParamsWithContext ¶
func NewVoucherMessagePostParamsWithContext(ctx context.Context) *VoucherMessagePostParams
NewVoucherMessagePostParamsWithContext creates a new VoucherMessagePostParams object with the default values initialized, and the ability to set a context for a request
func NewVoucherMessagePostParamsWithHTTPClient ¶
func NewVoucherMessagePostParamsWithHTTPClient(client *http.Client) *VoucherMessagePostParams
NewVoucherMessagePostParamsWithHTTPClient creates a new VoucherMessagePostParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewVoucherMessagePostParamsWithTimeout ¶
func NewVoucherMessagePostParamsWithTimeout(timeout time.Duration) *VoucherMessagePostParams
NewVoucherMessagePostParamsWithTimeout creates a new VoucherMessagePostParams object with the default values initialized, and the ability to set a timeout on a request
func (*VoucherMessagePostParams) SetBody ¶
func (o *VoucherMessagePostParams) SetBody(body *models.VoucherMessage)
SetBody adds the body to the voucher message post params
func (*VoucherMessagePostParams) SetContext ¶
func (o *VoucherMessagePostParams) SetContext(ctx context.Context)
SetContext adds the context to the voucher message post params
func (*VoucherMessagePostParams) SetHTTPClient ¶
func (o *VoucherMessagePostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the voucher message post params
func (*VoucherMessagePostParams) SetTimeout ¶
func (o *VoucherMessagePostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the voucher message post params
func (*VoucherMessagePostParams) WithBody ¶
func (o *VoucherMessagePostParams) WithBody(body *models.VoucherMessage) *VoucherMessagePostParams
WithBody adds the body to the voucher message post params
func (*VoucherMessagePostParams) WithContext ¶
func (o *VoucherMessagePostParams) WithContext(ctx context.Context) *VoucherMessagePostParams
WithContext adds the context to the voucher message post params
func (*VoucherMessagePostParams) WithHTTPClient ¶
func (o *VoucherMessagePostParams) WithHTTPClient(client *http.Client) *VoucherMessagePostParams
WithHTTPClient adds the HTTPClient to the voucher message post params
func (*VoucherMessagePostParams) WithTimeout ¶
func (o *VoucherMessagePostParams) WithTimeout(timeout time.Duration) *VoucherMessagePostParams
WithTimeout adds the timeout to the voucher message post params
func (*VoucherMessagePostParams) WriteToRequest ¶
func (o *VoucherMessagePostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VoucherMessagePostReader ¶
type VoucherMessagePostReader struct {
// contains filtered or unexported fields
}
VoucherMessagePostReader is a Reader for the VoucherMessagePost structure.
func (*VoucherMessagePostReader) ReadResponse ¶
func (o *VoucherMessagePostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type VoucherMessageSearchOK ¶
type VoucherMessageSearchOK struct {
Payload *models.ListResponseVoucherMessage
}
VoucherMessageSearchOK handles this case with default header values.
successful operation
func NewVoucherMessageSearchOK ¶
func NewVoucherMessageSearchOK() *VoucherMessageSearchOK
NewVoucherMessageSearchOK creates a VoucherMessageSearchOK with default headers values
func (*VoucherMessageSearchOK) Error ¶
func (o *VoucherMessageSearchOK) Error() string
func (*VoucherMessageSearchOK) GetPayload ¶
func (o *VoucherMessageSearchOK) GetPayload() *models.ListResponseVoucherMessage
type VoucherMessageSearchParams ¶
type VoucherMessageSearchParams struct { /*Count Number of elements to return */ Count *int64 /*Fields Fields filter pattern */ Fields *string /*From From index */ From *int64 /*Sorting Sorting pattern */ Sorting *string /*VoucherIds List of IDs */ VoucherIds *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
VoucherMessageSearchParams contains all the parameters to send to the API endpoint for the voucher message search operation typically these are written to a http.Request
func NewVoucherMessageSearchParams ¶
func NewVoucherMessageSearchParams() *VoucherMessageSearchParams
NewVoucherMessageSearchParams creates a new VoucherMessageSearchParams object with the default values initialized.
func NewVoucherMessageSearchParamsWithContext ¶
func NewVoucherMessageSearchParamsWithContext(ctx context.Context) *VoucherMessageSearchParams
NewVoucherMessageSearchParamsWithContext creates a new VoucherMessageSearchParams object with the default values initialized, and the ability to set a context for a request
func NewVoucherMessageSearchParamsWithHTTPClient ¶
func NewVoucherMessageSearchParamsWithHTTPClient(client *http.Client) *VoucherMessageSearchParams
NewVoucherMessageSearchParamsWithHTTPClient creates a new VoucherMessageSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewVoucherMessageSearchParamsWithTimeout ¶
func NewVoucherMessageSearchParamsWithTimeout(timeout time.Duration) *VoucherMessageSearchParams
NewVoucherMessageSearchParamsWithTimeout creates a new VoucherMessageSearchParams object with the default values initialized, and the ability to set a timeout on a request
func (*VoucherMessageSearchParams) SetContext ¶
func (o *VoucherMessageSearchParams) SetContext(ctx context.Context)
SetContext adds the context to the voucher message search params
func (*VoucherMessageSearchParams) SetCount ¶
func (o *VoucherMessageSearchParams) SetCount(count *int64)
SetCount adds the count to the voucher message search params
func (*VoucherMessageSearchParams) SetFields ¶
func (o *VoucherMessageSearchParams) SetFields(fields *string)
SetFields adds the fields to the voucher message search params
func (*VoucherMessageSearchParams) SetFrom ¶
func (o *VoucherMessageSearchParams) SetFrom(from *int64)
SetFrom adds the from to the voucher message search params
func (*VoucherMessageSearchParams) SetHTTPClient ¶
func (o *VoucherMessageSearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the voucher message search params
func (*VoucherMessageSearchParams) SetSorting ¶
func (o *VoucherMessageSearchParams) SetSorting(sorting *string)
SetSorting adds the sorting to the voucher message search params
func (*VoucherMessageSearchParams) SetTimeout ¶
func (o *VoucherMessageSearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the voucher message search params
func (*VoucherMessageSearchParams) SetVoucherIds ¶
func (o *VoucherMessageSearchParams) SetVoucherIds(voucherIds *string)
SetVoucherIds adds the voucherIds to the voucher message search params
func (*VoucherMessageSearchParams) WithContext ¶
func (o *VoucherMessageSearchParams) WithContext(ctx context.Context) *VoucherMessageSearchParams
WithContext adds the context to the voucher message search params
func (*VoucherMessageSearchParams) WithCount ¶
func (o *VoucherMessageSearchParams) WithCount(count *int64) *VoucherMessageSearchParams
WithCount adds the count to the voucher message search params
func (*VoucherMessageSearchParams) WithFields ¶
func (o *VoucherMessageSearchParams) WithFields(fields *string) *VoucherMessageSearchParams
WithFields adds the fields to the voucher message search params
func (*VoucherMessageSearchParams) WithFrom ¶
func (o *VoucherMessageSearchParams) WithFrom(from *int64) *VoucherMessageSearchParams
WithFrom adds the from to the voucher message search params
func (*VoucherMessageSearchParams) WithHTTPClient ¶
func (o *VoucherMessageSearchParams) WithHTTPClient(client *http.Client) *VoucherMessageSearchParams
WithHTTPClient adds the HTTPClient to the voucher message search params
func (*VoucherMessageSearchParams) WithSorting ¶
func (o *VoucherMessageSearchParams) WithSorting(sorting *string) *VoucherMessageSearchParams
WithSorting adds the sorting to the voucher message search params
func (*VoucherMessageSearchParams) WithTimeout ¶
func (o *VoucherMessageSearchParams) WithTimeout(timeout time.Duration) *VoucherMessageSearchParams
WithTimeout adds the timeout to the voucher message search params
func (*VoucherMessageSearchParams) WithVoucherIds ¶
func (o *VoucherMessageSearchParams) WithVoucherIds(voucherIds *string) *VoucherMessageSearchParams
WithVoucherIds adds the voucherIds to the voucher message search params
func (*VoucherMessageSearchParams) WriteToRequest ¶
func (o *VoucherMessageSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type VoucherMessageSearchReader ¶
type VoucherMessageSearchReader struct {
// contains filtered or unexported fields
}
VoucherMessageSearchReader is a Reader for the VoucherMessageSearch structure.
func (*VoucherMessageSearchReader) ReadResponse ¶
func (o *VoucherMessageSearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.