ticket

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcquireUserTicketConflict

type AcquireUserTicketConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

AcquireUserTicketConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37071</td><td>Insufficient ticket in booth [{boothName}] in namespace [{namespace}]</td></tr></table>

func NewAcquireUserTicketConflict

func NewAcquireUserTicketConflict() *AcquireUserTicketConflict

NewAcquireUserTicketConflict creates a AcquireUserTicketConflict with default headers values

func (*AcquireUserTicketConflict) Error

func (o *AcquireUserTicketConflict) Error() string

func (*AcquireUserTicketConflict) GetPayload

func (*AcquireUserTicketConflict) ToJSONString added in v0.25.0

func (o *AcquireUserTicketConflict) ToJSONString() string

type AcquireUserTicketNotFound

type AcquireUserTicketNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

AcquireUserTicketNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37041</td><td>Ticket booth [{boothName}] does not exist in namespace [{namespace}]</td></tr></table>

func NewAcquireUserTicketNotFound

func NewAcquireUserTicketNotFound() *AcquireUserTicketNotFound

NewAcquireUserTicketNotFound creates a AcquireUserTicketNotFound with default headers values

func (*AcquireUserTicketNotFound) Error

func (o *AcquireUserTicketNotFound) Error() string

func (*AcquireUserTicketNotFound) GetPayload

func (*AcquireUserTicketNotFound) ToJSONString added in v0.25.0

func (o *AcquireUserTicketNotFound) ToJSONString() string

type AcquireUserTicketOK

type AcquireUserTicketOK struct {
	Payload *platformclientmodels.TicketAcquireResult
}

AcquireUserTicketOK handles this case with default header values.

successful operation

func NewAcquireUserTicketOK

func NewAcquireUserTicketOK() *AcquireUserTicketOK

NewAcquireUserTicketOK creates a AcquireUserTicketOK with default headers values

func (*AcquireUserTicketOK) Error

func (o *AcquireUserTicketOK) Error() string

func (*AcquireUserTicketOK) GetPayload

func (*AcquireUserTicketOK) ToJSONString added in v0.25.0

func (o *AcquireUserTicketOK) ToJSONString() string

type AcquireUserTicketParams

type AcquireUserTicketParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.TicketAcquireRequest
	/*BoothName*/
	BoothName string
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

AcquireUserTicketParams contains all the parameters to send to the API endpoint for the acquire user ticket operation typically these are written to a http.Request

func NewAcquireUserTicketParams

func NewAcquireUserTicketParams() *AcquireUserTicketParams

NewAcquireUserTicketParams creates a new AcquireUserTicketParams object with the default values initialized.

func NewAcquireUserTicketParamsWithContext

func NewAcquireUserTicketParamsWithContext(ctx context.Context) *AcquireUserTicketParams

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

func NewAcquireUserTicketParamsWithHTTPClient

func NewAcquireUserTicketParamsWithHTTPClient(client *http.Client) *AcquireUserTicketParams

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

func NewAcquireUserTicketParamsWithTimeout

func NewAcquireUserTicketParamsWithTimeout(timeout time.Duration) *AcquireUserTicketParams

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

func (*AcquireUserTicketParams) SetAuthInfoWriter added in v0.17.0

func (o *AcquireUserTicketParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the acquire user ticket params

func (*AcquireUserTicketParams) SetBody

SetBody adds the body to the acquire user ticket params

func (*AcquireUserTicketParams) SetBoothName

func (o *AcquireUserTicketParams) SetBoothName(boothName string)

SetBoothName adds the boothName to the acquire user ticket params

func (*AcquireUserTicketParams) SetContext

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

SetContext adds the context to the acquire user ticket params

func (*AcquireUserTicketParams) SetFlightId added in v0.63.0

func (o *AcquireUserTicketParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*AcquireUserTicketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the acquire user ticket params

func (*AcquireUserTicketParams) SetHTTPClientTransport added in v0.19.0

func (o *AcquireUserTicketParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the acquire user ticket params

func (*AcquireUserTicketParams) SetNamespace

func (o *AcquireUserTicketParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the acquire user ticket params

func (*AcquireUserTicketParams) SetTimeout

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

SetTimeout adds the timeout to the acquire user ticket params

func (*AcquireUserTicketParams) SetUserID

func (o *AcquireUserTicketParams) SetUserID(userID string)

SetUserID adds the userId to the acquire user ticket params

func (*AcquireUserTicketParams) WithBody

WithBody adds the body to the acquire user ticket params

func (*AcquireUserTicketParams) WithBoothName

func (o *AcquireUserTicketParams) WithBoothName(boothName string) *AcquireUserTicketParams

WithBoothName adds the boothName to the acquire user ticket params

func (*AcquireUserTicketParams) WithContext

WithContext adds the context to the acquire user ticket params

func (*AcquireUserTicketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the acquire user ticket params

func (*AcquireUserTicketParams) WithNamespace

func (o *AcquireUserTicketParams) WithNamespace(namespace string) *AcquireUserTicketParams

WithNamespace adds the namespace to the acquire user ticket params

func (*AcquireUserTicketParams) WithTimeout

WithTimeout adds the timeout to the acquire user ticket params

func (*AcquireUserTicketParams) WithUserID

WithUserID adds the userID to the acquire user ticket params

func (*AcquireUserTicketParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AcquireUserTicketReader

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

AcquireUserTicketReader is a Reader for the AcquireUserTicket structure.

func (*AcquireUserTicketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AcquireUserTicketUnprocessableEntity

type AcquireUserTicketUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

AcquireUserTicketUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewAcquireUserTicketUnprocessableEntity

func NewAcquireUserTicketUnprocessableEntity() *AcquireUserTicketUnprocessableEntity

NewAcquireUserTicketUnprocessableEntity creates a AcquireUserTicketUnprocessableEntity with default headers values

func (*AcquireUserTicketUnprocessableEntity) Error

func (*AcquireUserTicketUnprocessableEntity) GetPayload

func (*AcquireUserTicketUnprocessableEntity) ToJSONString added in v0.25.0

func (o *AcquireUserTicketUnprocessableEntity) ToJSONString() string

type Client

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

Client for ticket API

func (*Client) AcquireUserTicket deprecated

Deprecated: 2022-08-10 - Use AcquireUserTicketShort instead.

AcquireUserTicket acquire ticket

[SERVICE COMMUNICATION ONLY] Acquire ticket(code/key) based on booth name.

Other detail info:

  • Returns : acquire result

func (*Client) AcquireUserTicketShort added in v0.8.0

func (a *Client) AcquireUserTicketShort(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, error)

AcquireUserTicketShort acquire ticket

[SERVICE COMMUNICATION ONLY] Acquire ticket(code/key) based on booth name.

Other detail info:

  • Returns : acquire result

func (*Client) DecreaseTicketSale deprecated

Deprecated: 2022-08-10 - Use DecreaseTicketSaleShort instead.

DecreaseTicketSale decrease ticket sale

[SERVICE COMMUNICATION ONLY] Decrease ticket(code/key) sale if requested orderNo is already increased.

func (*Client) DecreaseTicketSaleShort added in v0.8.0

func (a *Client) DecreaseTicketSaleShort(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, error)

DecreaseTicketSaleShort decrease ticket sale

[SERVICE COMMUNICATION ONLY] Decrease ticket(code/key) sale if requested orderNo is already increased.

func (*Client) GetTicketBoothID deprecated

Deprecated: 2022-08-10 - Use GetTicketBoothIDShort instead.

GetTicketBoothID get ticket booth id Get ticket(code/key) booth ID. Other detail info:

  • Returns : ticket booth id

func (*Client) GetTicketBoothIDShort added in v0.8.0

func (a *Client) GetTicketBoothIDShort(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, error)

GetTicketBoothIDShort get ticket booth id Get ticket(code/key) booth ID. Other detail info:

  • Returns : ticket booth id

func (*Client) GetTicketDynamic deprecated

Deprecated: 2022-08-10 - Use GetTicketDynamicShort instead.

GetTicketDynamic get ticket dynamic

[SERVICE COMMUNICATION ONLY] Get ticket(code/key) dynamic based on booth name.

Other detail info:

  • Returns : ticket dynamic

func (*Client) GetTicketDynamicShort added in v0.8.0

func (a *Client) GetTicketDynamicShort(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, error)

GetTicketDynamicShort get ticket dynamic

[SERVICE COMMUNICATION ONLY] Get ticket(code/key) dynamic based on booth name.

Other detail info:

  • Returns : ticket dynamic

func (*Client) IncreaseTicketSale deprecated

Deprecated: 2022-08-10 - Use IncreaseTicketSaleShort instead.

IncreaseTicketSale increase ticket sale

[SERVICE COMMUNICATION ONLY] increase ticket(code/key) sale.

Other detail info:

  • Returns : Ticket sale increment result

func (*Client) IncreaseTicketSaleShort added in v0.8.0

func (a *Client) IncreaseTicketSaleShort(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, error)

IncreaseTicketSaleShort increase ticket sale

[SERVICE COMMUNICATION ONLY] increase ticket(code/key) sale.

Other detail info:

  • Returns : Ticket sale increment result

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetTicketDynamic(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, *GetTicketDynamicNotFound, error)
	GetTicketDynamicShort(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, error)
	DecreaseTicketSale(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, *DecreaseTicketSaleNotFound, *DecreaseTicketSaleUnprocessableEntity, error)
	DecreaseTicketSaleShort(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, error)
	GetTicketBoothID(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, *GetTicketBoothIDNotFound, error)
	GetTicketBoothIDShort(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, error)
	IncreaseTicketSale(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, *IncreaseTicketSaleNotFound, *IncreaseTicketSaleUnprocessableEntity, error)
	IncreaseTicketSaleShort(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, error)
	AcquireUserTicket(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, *AcquireUserTicketNotFound, *AcquireUserTicketConflict, *AcquireUserTicketUnprocessableEntity, error)
	AcquireUserTicketShort(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, 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 ticket API client.

type DecreaseTicketSaleNoContent

type DecreaseTicketSaleNoContent struct {
}

DecreaseTicketSaleNoContent handles this case with default header values.

Return item successfully

func NewDecreaseTicketSaleNoContent

func NewDecreaseTicketSaleNoContent() *DecreaseTicketSaleNoContent

NewDecreaseTicketSaleNoContent creates a DecreaseTicketSaleNoContent with default headers values

func (*DecreaseTicketSaleNoContent) Error

type DecreaseTicketSaleNotFound

type DecreaseTicketSaleNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DecreaseTicketSaleNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37041</td><td>Ticket booth [{boothName}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDecreaseTicketSaleNotFound

func NewDecreaseTicketSaleNotFound() *DecreaseTicketSaleNotFound

NewDecreaseTicketSaleNotFound creates a DecreaseTicketSaleNotFound with default headers values

func (*DecreaseTicketSaleNotFound) Error

func (*DecreaseTicketSaleNotFound) GetPayload

func (*DecreaseTicketSaleNotFound) ToJSONString added in v0.25.0

func (o *DecreaseTicketSaleNotFound) ToJSONString() string

type DecreaseTicketSaleParams

type DecreaseTicketSaleParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.TicketSaleDecrementRequest
	/*BoothName*/
	BoothName string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

DecreaseTicketSaleParams contains all the parameters to send to the API endpoint for the decrease ticket sale operation typically these are written to a http.Request

func NewDecreaseTicketSaleParams

func NewDecreaseTicketSaleParams() *DecreaseTicketSaleParams

NewDecreaseTicketSaleParams creates a new DecreaseTicketSaleParams object with the default values initialized.

func NewDecreaseTicketSaleParamsWithContext

func NewDecreaseTicketSaleParamsWithContext(ctx context.Context) *DecreaseTicketSaleParams

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

func NewDecreaseTicketSaleParamsWithHTTPClient

func NewDecreaseTicketSaleParamsWithHTTPClient(client *http.Client) *DecreaseTicketSaleParams

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

func NewDecreaseTicketSaleParamsWithTimeout

func NewDecreaseTicketSaleParamsWithTimeout(timeout time.Duration) *DecreaseTicketSaleParams

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

func (*DecreaseTicketSaleParams) SetAuthInfoWriter added in v0.17.0

func (o *DecreaseTicketSaleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetBody

SetBody adds the body to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetBoothName

func (o *DecreaseTicketSaleParams) SetBoothName(boothName string)

SetBoothName adds the boothName to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetContext

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

SetContext adds the context to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetFlightId added in v0.63.0

func (o *DecreaseTicketSaleParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*DecreaseTicketSaleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetHTTPClientTransport added in v0.19.0

func (o *DecreaseTicketSaleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetNamespace

func (o *DecreaseTicketSaleParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the decrease ticket sale params

func (*DecreaseTicketSaleParams) SetTimeout

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

SetTimeout adds the timeout to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithBody

WithBody adds the body to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithBoothName

func (o *DecreaseTicketSaleParams) WithBoothName(boothName string) *DecreaseTicketSaleParams

WithBoothName adds the boothName to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithContext

WithContext adds the context to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithNamespace

func (o *DecreaseTicketSaleParams) WithNamespace(namespace string) *DecreaseTicketSaleParams

WithNamespace adds the namespace to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WithTimeout

WithTimeout adds the timeout to the decrease ticket sale params

func (*DecreaseTicketSaleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DecreaseTicketSaleReader

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

DecreaseTicketSaleReader is a Reader for the DecreaseTicketSale structure.

func (*DecreaseTicketSaleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DecreaseTicketSaleUnprocessableEntity

type DecreaseTicketSaleUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

DecreaseTicketSaleUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewDecreaseTicketSaleUnprocessableEntity

func NewDecreaseTicketSaleUnprocessableEntity() *DecreaseTicketSaleUnprocessableEntity

NewDecreaseTicketSaleUnprocessableEntity creates a DecreaseTicketSaleUnprocessableEntity with default headers values

func (*DecreaseTicketSaleUnprocessableEntity) Error

func (*DecreaseTicketSaleUnprocessableEntity) GetPayload

func (*DecreaseTicketSaleUnprocessableEntity) ToJSONString added in v0.25.0

type GetTicketBoothIDNotFound

type GetTicketBoothIDNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetTicketBoothIDNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37041</td><td>Ticket booth [{boothName}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetTicketBoothIDNotFound

func NewGetTicketBoothIDNotFound() *GetTicketBoothIDNotFound

NewGetTicketBoothIDNotFound creates a GetTicketBoothIDNotFound with default headers values

func (*GetTicketBoothIDNotFound) Error

func (o *GetTicketBoothIDNotFound) Error() string

func (*GetTicketBoothIDNotFound) GetPayload

func (*GetTicketBoothIDNotFound) ToJSONString added in v0.25.0

func (o *GetTicketBoothIDNotFound) ToJSONString() string

type GetTicketBoothIDOK

type GetTicketBoothIDOK struct {
	Payload *platformclientmodels.TicketBoothID
}

GetTicketBoothIDOK handles this case with default header values.

successful operation

func NewGetTicketBoothIDOK

func NewGetTicketBoothIDOK() *GetTicketBoothIDOK

NewGetTicketBoothIDOK creates a GetTicketBoothIDOK with default headers values

func (*GetTicketBoothIDOK) Error

func (o *GetTicketBoothIDOK) Error() string

func (*GetTicketBoothIDOK) GetPayload

func (*GetTicketBoothIDOK) ToJSONString added in v0.25.0

func (o *GetTicketBoothIDOK) ToJSONString() string

type GetTicketBoothIDParams

type GetTicketBoothIDParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*BoothName*/
	BoothName string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetTicketBoothIDParams contains all the parameters to send to the API endpoint for the get ticket booth id operation typically these are written to a http.Request

func NewGetTicketBoothIDParams

func NewGetTicketBoothIDParams() *GetTicketBoothIDParams

NewGetTicketBoothIDParams creates a new GetTicketBoothIDParams object with the default values initialized.

func NewGetTicketBoothIDParamsWithContext

func NewGetTicketBoothIDParamsWithContext(ctx context.Context) *GetTicketBoothIDParams

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

func NewGetTicketBoothIDParamsWithHTTPClient

func NewGetTicketBoothIDParamsWithHTTPClient(client *http.Client) *GetTicketBoothIDParams

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

func NewGetTicketBoothIDParamsWithTimeout

func NewGetTicketBoothIDParamsWithTimeout(timeout time.Duration) *GetTicketBoothIDParams

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

func (*GetTicketBoothIDParams) SetAuthInfoWriter added in v0.17.0

func (o *GetTicketBoothIDParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get ticket booth id params

func (*GetTicketBoothIDParams) SetBoothName

func (o *GetTicketBoothIDParams) SetBoothName(boothName string)

SetBoothName adds the boothName to the get ticket booth id params

func (*GetTicketBoothIDParams) SetContext

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

SetContext adds the context to the get ticket booth id params

func (*GetTicketBoothIDParams) SetFlightId added in v0.63.0

func (o *GetTicketBoothIDParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetTicketBoothIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get ticket booth id params

func (*GetTicketBoothIDParams) SetHTTPClientTransport added in v0.19.0

func (o *GetTicketBoothIDParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get ticket booth id params

func (*GetTicketBoothIDParams) SetNamespace

func (o *GetTicketBoothIDParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get ticket booth id params

func (*GetTicketBoothIDParams) SetTimeout

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

SetTimeout adds the timeout to the get ticket booth id params

func (*GetTicketBoothIDParams) WithBoothName

func (o *GetTicketBoothIDParams) WithBoothName(boothName string) *GetTicketBoothIDParams

WithBoothName adds the boothName to the get ticket booth id params

func (*GetTicketBoothIDParams) WithContext

WithContext adds the context to the get ticket booth id params

func (*GetTicketBoothIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get ticket booth id params

func (*GetTicketBoothIDParams) WithNamespace

func (o *GetTicketBoothIDParams) WithNamespace(namespace string) *GetTicketBoothIDParams

WithNamespace adds the namespace to the get ticket booth id params

func (*GetTicketBoothIDParams) WithTimeout

WithTimeout adds the timeout to the get ticket booth id params

func (*GetTicketBoothIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTicketBoothIDReader

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

GetTicketBoothIDReader is a Reader for the GetTicketBoothID structure.

func (*GetTicketBoothIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTicketDynamicNotFound

type GetTicketDynamicNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetTicketDynamicNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37041</td><td>Ticket booth [{boothName}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetTicketDynamicNotFound

func NewGetTicketDynamicNotFound() *GetTicketDynamicNotFound

NewGetTicketDynamicNotFound creates a GetTicketDynamicNotFound with default headers values

func (*GetTicketDynamicNotFound) Error

func (o *GetTicketDynamicNotFound) Error() string

func (*GetTicketDynamicNotFound) GetPayload

func (*GetTicketDynamicNotFound) ToJSONString added in v0.25.0

func (o *GetTicketDynamicNotFound) ToJSONString() string

type GetTicketDynamicOK

type GetTicketDynamicOK struct {
	Payload *platformclientmodels.TicketDynamicInfo
}

GetTicketDynamicOK handles this case with default header values.

successful operation

func NewGetTicketDynamicOK

func NewGetTicketDynamicOK() *GetTicketDynamicOK

NewGetTicketDynamicOK creates a GetTicketDynamicOK with default headers values

func (*GetTicketDynamicOK) Error

func (o *GetTicketDynamicOK) Error() string

func (*GetTicketDynamicOK) GetPayload

func (*GetTicketDynamicOK) ToJSONString added in v0.25.0

func (o *GetTicketDynamicOK) ToJSONString() string

type GetTicketDynamicParams

type GetTicketDynamicParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*BoothName*/
	BoothName string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetTicketDynamicParams contains all the parameters to send to the API endpoint for the get ticket dynamic operation typically these are written to a http.Request

func NewGetTicketDynamicParams

func NewGetTicketDynamicParams() *GetTicketDynamicParams

NewGetTicketDynamicParams creates a new GetTicketDynamicParams object with the default values initialized.

func NewGetTicketDynamicParamsWithContext

func NewGetTicketDynamicParamsWithContext(ctx context.Context) *GetTicketDynamicParams

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

func NewGetTicketDynamicParamsWithHTTPClient

func NewGetTicketDynamicParamsWithHTTPClient(client *http.Client) *GetTicketDynamicParams

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

func NewGetTicketDynamicParamsWithTimeout

func NewGetTicketDynamicParamsWithTimeout(timeout time.Duration) *GetTicketDynamicParams

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

func (*GetTicketDynamicParams) SetAuthInfoWriter added in v0.17.0

func (o *GetTicketDynamicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get ticket dynamic params

func (*GetTicketDynamicParams) SetBoothName

func (o *GetTicketDynamicParams) SetBoothName(boothName string)

SetBoothName adds the boothName to the get ticket dynamic params

func (*GetTicketDynamicParams) SetContext

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

SetContext adds the context to the get ticket dynamic params

func (*GetTicketDynamicParams) SetFlightId added in v0.63.0

func (o *GetTicketDynamicParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetTicketDynamicParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get ticket dynamic params

func (*GetTicketDynamicParams) SetHTTPClientTransport added in v0.19.0

func (o *GetTicketDynamicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get ticket dynamic params

func (*GetTicketDynamicParams) SetNamespace

func (o *GetTicketDynamicParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get ticket dynamic params

func (*GetTicketDynamicParams) SetTimeout

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

SetTimeout adds the timeout to the get ticket dynamic params

func (*GetTicketDynamicParams) WithBoothName

func (o *GetTicketDynamicParams) WithBoothName(boothName string) *GetTicketDynamicParams

WithBoothName adds the boothName to the get ticket dynamic params

func (*GetTicketDynamicParams) WithContext

WithContext adds the context to the get ticket dynamic params

func (*GetTicketDynamicParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get ticket dynamic params

func (*GetTicketDynamicParams) WithNamespace

func (o *GetTicketDynamicParams) WithNamespace(namespace string) *GetTicketDynamicParams

WithNamespace adds the namespace to the get ticket dynamic params

func (*GetTicketDynamicParams) WithTimeout

WithTimeout adds the timeout to the get ticket dynamic params

func (*GetTicketDynamicParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTicketDynamicReader

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

GetTicketDynamicReader is a Reader for the GetTicketDynamic structure.

func (*GetTicketDynamicReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type IncreaseTicketSaleNotFound

type IncreaseTicketSaleNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

IncreaseTicketSaleNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37041</td><td>Ticket booth [{boothName}] does not exist in namespace [{namespace}]</td></tr></table>

func NewIncreaseTicketSaleNotFound

func NewIncreaseTicketSaleNotFound() *IncreaseTicketSaleNotFound

NewIncreaseTicketSaleNotFound creates a IncreaseTicketSaleNotFound with default headers values

func (*IncreaseTicketSaleNotFound) Error

func (*IncreaseTicketSaleNotFound) GetPayload

func (*IncreaseTicketSaleNotFound) ToJSONString added in v0.25.0

func (o *IncreaseTicketSaleNotFound) ToJSONString() string

type IncreaseTicketSaleOK

type IncreaseTicketSaleOK struct {
	Payload *platformclientmodels.TicketSaleIncrementResult
}

IncreaseTicketSaleOK handles this case with default header values.

successful operation

func NewIncreaseTicketSaleOK

func NewIncreaseTicketSaleOK() *IncreaseTicketSaleOK

NewIncreaseTicketSaleOK creates a IncreaseTicketSaleOK with default headers values

func (*IncreaseTicketSaleOK) Error

func (o *IncreaseTicketSaleOK) Error() string

func (*IncreaseTicketSaleOK) GetPayload

func (*IncreaseTicketSaleOK) ToJSONString added in v0.25.0

func (o *IncreaseTicketSaleOK) ToJSONString() string

type IncreaseTicketSaleParams

type IncreaseTicketSaleParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.TicketSaleIncrementRequest
	/*BoothName*/
	BoothName string
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

IncreaseTicketSaleParams contains all the parameters to send to the API endpoint for the increase ticket sale operation typically these are written to a http.Request

func NewIncreaseTicketSaleParams

func NewIncreaseTicketSaleParams() *IncreaseTicketSaleParams

NewIncreaseTicketSaleParams creates a new IncreaseTicketSaleParams object with the default values initialized.

func NewIncreaseTicketSaleParamsWithContext

func NewIncreaseTicketSaleParamsWithContext(ctx context.Context) *IncreaseTicketSaleParams

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

func NewIncreaseTicketSaleParamsWithHTTPClient

func NewIncreaseTicketSaleParamsWithHTTPClient(client *http.Client) *IncreaseTicketSaleParams

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

func NewIncreaseTicketSaleParamsWithTimeout

func NewIncreaseTicketSaleParamsWithTimeout(timeout time.Duration) *IncreaseTicketSaleParams

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

func (*IncreaseTicketSaleParams) SetAuthInfoWriter added in v0.17.0

func (o *IncreaseTicketSaleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetBody

SetBody adds the body to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetBoothName

func (o *IncreaseTicketSaleParams) SetBoothName(boothName string)

SetBoothName adds the boothName to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetContext

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

SetContext adds the context to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetFlightId added in v0.63.0

func (o *IncreaseTicketSaleParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*IncreaseTicketSaleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetHTTPClientTransport added in v0.19.0

func (o *IncreaseTicketSaleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetNamespace

func (o *IncreaseTicketSaleParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the increase ticket sale params

func (*IncreaseTicketSaleParams) SetTimeout

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

SetTimeout adds the timeout to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithBody

WithBody adds the body to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithBoothName

func (o *IncreaseTicketSaleParams) WithBoothName(boothName string) *IncreaseTicketSaleParams

WithBoothName adds the boothName to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithContext

WithContext adds the context to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithNamespace

func (o *IncreaseTicketSaleParams) WithNamespace(namespace string) *IncreaseTicketSaleParams

WithNamespace adds the namespace to the increase ticket sale params

func (*IncreaseTicketSaleParams) WithTimeout

WithTimeout adds the timeout to the increase ticket sale params

func (*IncreaseTicketSaleParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type IncreaseTicketSaleReader

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

IncreaseTicketSaleReader is a Reader for the IncreaseTicketSale structure.

func (*IncreaseTicketSaleReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type IncreaseTicketSaleUnprocessableEntity

type IncreaseTicketSaleUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

IncreaseTicketSaleUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewIncreaseTicketSaleUnprocessableEntity

func NewIncreaseTicketSaleUnprocessableEntity() *IncreaseTicketSaleUnprocessableEntity

NewIncreaseTicketSaleUnprocessableEntity creates a IncreaseTicketSaleUnprocessableEntity with default headers values

func (*IncreaseTicketSaleUnprocessableEntity) Error

func (*IncreaseTicketSaleUnprocessableEntity) GetPayload

func (*IncreaseTicketSaleUnprocessableEntity) ToJSONString added in v0.25.0

Jump to

Keyboard shortcuts

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