voucher_message

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 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 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

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

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

WithBody adds the body to the voucher message post params

func (*VoucherMessagePostParams) WithContext

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

WithTimeout adds the timeout to the voucher message post params

func (*VoucherMessagePostParams) WriteToRequest

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

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

WithContext adds the context to the voucher message search params

func (*VoucherMessageSearchParams) WithCount

WithCount adds the count to the voucher message search params

func (*VoucherMessageSearchParams) WithFields

WithFields adds the fields to the voucher message search params

func (*VoucherMessageSearchParams) WithFrom

WithFrom adds the from to the voucher message search params

func (*VoucherMessageSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the voucher message search params

func (*VoucherMessageSearchParams) WithSorting

WithSorting adds the sorting to the voucher message search params

func (*VoucherMessageSearchParams) WithTimeout

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

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.

Jump to

Keyboard shortcuts

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