Documentation ¶
Index ¶
- type AcquireUserTicketConflict
- type AcquireUserTicketNotFound
- type AcquireUserTicketOK
- type AcquireUserTicketParams
- func NewAcquireUserTicketParams() *AcquireUserTicketParams
- func NewAcquireUserTicketParamsWithContext(ctx context.Context) *AcquireUserTicketParams
- func NewAcquireUserTicketParamsWithHTTPClient(client *http.Client) *AcquireUserTicketParams
- func NewAcquireUserTicketParamsWithTimeout(timeout time.Duration) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AcquireUserTicketParams) SetBody(body *platformclientmodels.TicketAcquireRequest)
- func (o *AcquireUserTicketParams) SetBoothName(boothName string)
- func (o *AcquireUserTicketParams) SetContext(ctx context.Context)
- func (o *AcquireUserTicketParams) SetFlightId(flightId string)
- func (o *AcquireUserTicketParams) SetHTTPClient(client *http.Client)
- func (o *AcquireUserTicketParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AcquireUserTicketParams) SetNamespace(namespace string)
- func (o *AcquireUserTicketParams) SetTimeout(timeout time.Duration)
- func (o *AcquireUserTicketParams) SetUserID(userID string)
- func (o *AcquireUserTicketParams) WithBody(body *platformclientmodels.TicketAcquireRequest) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithBoothName(boothName string) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithContext(ctx context.Context) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithHTTPClient(client *http.Client) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithNamespace(namespace string) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithTimeout(timeout time.Duration) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WithUserID(userID string) *AcquireUserTicketParams
- func (o *AcquireUserTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AcquireUserTicketReader
- type AcquireUserTicketUnprocessableEntity
- type Client
- func (a *Client) AcquireUserTicket(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, *AcquireUserTicketNotFound, *AcquireUserTicketConflict, ...)deprecated
- func (a *Client) AcquireUserTicketShort(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, error)
- func (a *Client) DecreaseTicketSale(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, *DecreaseTicketSaleNotFound, ...)deprecated
- func (a *Client) DecreaseTicketSaleShort(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, error)
- func (a *Client) GetTicketBoothID(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, *GetTicketBoothIDNotFound, error)deprecated
- func (a *Client) GetTicketBoothIDShort(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, error)
- func (a *Client) GetTicketDynamic(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, *GetTicketDynamicNotFound, error)deprecated
- func (a *Client) GetTicketDynamicShort(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, error)
- func (a *Client) IncreaseTicketSale(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, *IncreaseTicketSaleNotFound, ...)deprecated
- func (a *Client) IncreaseTicketSaleShort(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DecreaseTicketSaleNoContent
- type DecreaseTicketSaleNotFound
- type DecreaseTicketSaleParams
- func NewDecreaseTicketSaleParams() *DecreaseTicketSaleParams
- func NewDecreaseTicketSaleParamsWithContext(ctx context.Context) *DecreaseTicketSaleParams
- func NewDecreaseTicketSaleParamsWithHTTPClient(client *http.Client) *DecreaseTicketSaleParams
- func NewDecreaseTicketSaleParamsWithTimeout(timeout time.Duration) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DecreaseTicketSaleParams) SetBody(body *platformclientmodels.TicketSaleDecrementRequest)
- func (o *DecreaseTicketSaleParams) SetBoothName(boothName string)
- func (o *DecreaseTicketSaleParams) SetContext(ctx context.Context)
- func (o *DecreaseTicketSaleParams) SetFlightId(flightId string)
- func (o *DecreaseTicketSaleParams) SetHTTPClient(client *http.Client)
- func (o *DecreaseTicketSaleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DecreaseTicketSaleParams) SetNamespace(namespace string)
- func (o *DecreaseTicketSaleParams) SetTimeout(timeout time.Duration)
- func (o *DecreaseTicketSaleParams) WithBody(body *platformclientmodels.TicketSaleDecrementRequest) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WithBoothName(boothName string) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WithContext(ctx context.Context) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WithHTTPClient(client *http.Client) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WithNamespace(namespace string) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WithTimeout(timeout time.Duration) *DecreaseTicketSaleParams
- func (o *DecreaseTicketSaleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DecreaseTicketSaleReader
- type DecreaseTicketSaleUnprocessableEntity
- type GetTicketBoothIDNotFound
- type GetTicketBoothIDOK
- type GetTicketBoothIDParams
- func NewGetTicketBoothIDParams() *GetTicketBoothIDParams
- func NewGetTicketBoothIDParamsWithContext(ctx context.Context) *GetTicketBoothIDParams
- func NewGetTicketBoothIDParamsWithHTTPClient(client *http.Client) *GetTicketBoothIDParams
- func NewGetTicketBoothIDParamsWithTimeout(timeout time.Duration) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetTicketBoothIDParams) SetBoothName(boothName string)
- func (o *GetTicketBoothIDParams) SetContext(ctx context.Context)
- func (o *GetTicketBoothIDParams) SetFlightId(flightId string)
- func (o *GetTicketBoothIDParams) SetHTTPClient(client *http.Client)
- func (o *GetTicketBoothIDParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetTicketBoothIDParams) SetNamespace(namespace string)
- func (o *GetTicketBoothIDParams) SetTimeout(timeout time.Duration)
- func (o *GetTicketBoothIDParams) WithBoothName(boothName string) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) WithContext(ctx context.Context) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) WithHTTPClient(client *http.Client) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) WithNamespace(namespace string) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) WithTimeout(timeout time.Duration) *GetTicketBoothIDParams
- func (o *GetTicketBoothIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTicketBoothIDReader
- type GetTicketDynamicNotFound
- type GetTicketDynamicOK
- type GetTicketDynamicParams
- func NewGetTicketDynamicParams() *GetTicketDynamicParams
- func NewGetTicketDynamicParamsWithContext(ctx context.Context) *GetTicketDynamicParams
- func NewGetTicketDynamicParamsWithHTTPClient(client *http.Client) *GetTicketDynamicParams
- func NewGetTicketDynamicParamsWithTimeout(timeout time.Duration) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetTicketDynamicParams) SetBoothName(boothName string)
- func (o *GetTicketDynamicParams) SetContext(ctx context.Context)
- func (o *GetTicketDynamicParams) SetFlightId(flightId string)
- func (o *GetTicketDynamicParams) SetHTTPClient(client *http.Client)
- func (o *GetTicketDynamicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetTicketDynamicParams) SetNamespace(namespace string)
- func (o *GetTicketDynamicParams) SetTimeout(timeout time.Duration)
- func (o *GetTicketDynamicParams) WithBoothName(boothName string) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) WithContext(ctx context.Context) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) WithHTTPClient(client *http.Client) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) WithNamespace(namespace string) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) WithTimeout(timeout time.Duration) *GetTicketDynamicParams
- func (o *GetTicketDynamicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTicketDynamicReader
- type IncreaseTicketSaleNotFound
- type IncreaseTicketSaleOK
- type IncreaseTicketSaleParams
- func NewIncreaseTicketSaleParams() *IncreaseTicketSaleParams
- func NewIncreaseTicketSaleParamsWithContext(ctx context.Context) *IncreaseTicketSaleParams
- func NewIncreaseTicketSaleParamsWithHTTPClient(client *http.Client) *IncreaseTicketSaleParams
- func NewIncreaseTicketSaleParamsWithTimeout(timeout time.Duration) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *IncreaseTicketSaleParams) SetBody(body *platformclientmodels.TicketSaleIncrementRequest)
- func (o *IncreaseTicketSaleParams) SetBoothName(boothName string)
- func (o *IncreaseTicketSaleParams) SetContext(ctx context.Context)
- func (o *IncreaseTicketSaleParams) SetFlightId(flightId string)
- func (o *IncreaseTicketSaleParams) SetHTTPClient(client *http.Client)
- func (o *IncreaseTicketSaleParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *IncreaseTicketSaleParams) SetNamespace(namespace string)
- func (o *IncreaseTicketSaleParams) SetTimeout(timeout time.Duration)
- func (o *IncreaseTicketSaleParams) WithBody(body *platformclientmodels.TicketSaleIncrementRequest) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WithBoothName(boothName string) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WithContext(ctx context.Context) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WithHTTPClient(client *http.Client) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WithNamespace(namespace string) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WithTimeout(timeout time.Duration) *IncreaseTicketSaleParams
- func (o *IncreaseTicketSaleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IncreaseTicketSaleReader
- type IncreaseTicketSaleUnprocessableEntity
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 (o *AcquireUserTicketConflict) GetPayload() *platformclientmodels.ErrorEntity
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 (o *AcquireUserTicketNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *AcquireUserTicketOK) GetPayload() *platformclientmodels.TicketAcquireResult
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 ¶
func (o *AcquireUserTicketParams) SetBody(body *platformclientmodels.TicketAcquireRequest)
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 ¶
func (o *AcquireUserTicketParams) WithBody(body *platformclientmodels.TicketAcquireRequest) *AcquireUserTicketParams
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 ¶
func (o *AcquireUserTicketParams) WithContext(ctx context.Context) *AcquireUserTicketParams
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 ¶
func (o *AcquireUserTicketParams) WithTimeout(timeout time.Duration) *AcquireUserTicketParams
WithTimeout adds the timeout to the acquire user ticket params
func (*AcquireUserTicketParams) WithUserID ¶
func (o *AcquireUserTicketParams) WithUserID(userID string) *AcquireUserTicketParams
WithUserID adds the userID to the acquire user ticket params
func (*AcquireUserTicketParams) WriteToRequest ¶
func (o *AcquireUserTicketParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *AcquireUserTicketUnprocessableEntity) Error() string
func (*AcquireUserTicketUnprocessableEntity) GetPayload ¶
func (o *AcquireUserTicketUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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
func (a *Client) AcquireUserTicket(params *AcquireUserTicketParams, authInfo runtime.ClientAuthInfoWriter) (*AcquireUserTicketOK, *AcquireUserTicketNotFound, *AcquireUserTicketConflict, *AcquireUserTicketUnprocessableEntity, error)
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
func (a *Client) DecreaseTicketSale(params *DecreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*DecreaseTicketSaleNoContent, *DecreaseTicketSaleNotFound, *DecreaseTicketSaleUnprocessableEntity, error)
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
func (a *Client) GetTicketBoothID(params *GetTicketBoothIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketBoothIDOK, *GetTicketBoothIDNotFound, error)
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
func (a *Client) GetTicketDynamic(params *GetTicketDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetTicketDynamicOK, *GetTicketDynamicNotFound, error)
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
func (a *Client) IncreaseTicketSale(params *IncreaseTicketSaleParams, authInfo runtime.ClientAuthInfoWriter) (*IncreaseTicketSaleOK, *IncreaseTicketSaleNotFound, *IncreaseTicketSaleUnprocessableEntity, error)
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 ¶
func (o *DecreaseTicketSaleNoContent) Error() string
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 (o *DecreaseTicketSaleNotFound) Error() string
func (*DecreaseTicketSaleNotFound) GetPayload ¶
func (o *DecreaseTicketSaleNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *DecreaseTicketSaleParams) SetBody(body *platformclientmodels.TicketSaleDecrementRequest)
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 ¶
func (o *DecreaseTicketSaleParams) WithBody(body *platformclientmodels.TicketSaleDecrementRequest) *DecreaseTicketSaleParams
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 ¶
func (o *DecreaseTicketSaleParams) WithContext(ctx context.Context) *DecreaseTicketSaleParams
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 ¶
func (o *DecreaseTicketSaleParams) WithTimeout(timeout time.Duration) *DecreaseTicketSaleParams
WithTimeout adds the timeout to the decrease ticket sale params
func (*DecreaseTicketSaleParams) WriteToRequest ¶
func (o *DecreaseTicketSaleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DecreaseTicketSaleUnprocessableEntity) Error() string
func (*DecreaseTicketSaleUnprocessableEntity) GetPayload ¶
func (o *DecreaseTicketSaleUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*DecreaseTicketSaleUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *DecreaseTicketSaleUnprocessableEntity) ToJSONString() string
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 (o *GetTicketBoothIDNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *GetTicketBoothIDOK) GetPayload() *platformclientmodels.TicketBoothID
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 ¶
func (o *GetTicketBoothIDParams) WithContext(ctx context.Context) *GetTicketBoothIDParams
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 ¶
func (o *GetTicketBoothIDParams) WithTimeout(timeout time.Duration) *GetTicketBoothIDParams
WithTimeout adds the timeout to the get ticket booth id params
func (*GetTicketBoothIDParams) WriteToRequest ¶
func (o *GetTicketBoothIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetTicketDynamicNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *GetTicketDynamicOK) GetPayload() *platformclientmodels.TicketDynamicInfo
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 ¶
func (o *GetTicketDynamicParams) WithContext(ctx context.Context) *GetTicketDynamicParams
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 ¶
func (o *GetTicketDynamicParams) WithTimeout(timeout time.Duration) *GetTicketDynamicParams
WithTimeout adds the timeout to the get ticket dynamic params
func (*GetTicketDynamicParams) WriteToRequest ¶
func (o *GetTicketDynamicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *IncreaseTicketSaleNotFound) Error() string
func (*IncreaseTicketSaleNotFound) GetPayload ¶
func (o *IncreaseTicketSaleNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *IncreaseTicketSaleOK) GetPayload() *platformclientmodels.TicketSaleIncrementResult
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 ¶
func (o *IncreaseTicketSaleParams) SetBody(body *platformclientmodels.TicketSaleIncrementRequest)
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 ¶
func (o *IncreaseTicketSaleParams) WithBody(body *platformclientmodels.TicketSaleIncrementRequest) *IncreaseTicketSaleParams
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 ¶
func (o *IncreaseTicketSaleParams) WithContext(ctx context.Context) *IncreaseTicketSaleParams
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 ¶
func (o *IncreaseTicketSaleParams) WithTimeout(timeout time.Duration) *IncreaseTicketSaleParams
WithTimeout adds the timeout to the increase ticket sale params
func (*IncreaseTicketSaleParams) WriteToRequest ¶
func (o *IncreaseTicketSaleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *IncreaseTicketSaleUnprocessableEntity) Error() string
func (*IncreaseTicketSaleUnprocessableEntity) GetPayload ¶
func (o *IncreaseTicketSaleUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*IncreaseTicketSaleUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *IncreaseTicketSaleUnprocessableEntity) ToJSONString() string
Source Files ¶
- acquire_user_ticket_parameters.go
- acquire_user_ticket_responses.go
- decrease_ticket_sale_parameters.go
- decrease_ticket_sale_responses.go
- get_ticket_booth_id_parameters.go
- get_ticket_booth_id_responses.go
- get_ticket_dynamic_parameters.go
- get_ticket_dynamic_responses.go
- increase_ticket_sale_parameters.go
- increase_ticket_sale_responses.go
- ticket_client.go