reward

package
v0.64.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 Client

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

Client for reward API

func (*Client) CreateReward deprecated

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

CreateReward create a reward This API is used to create a reward for a draft season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)
  • Returns : created reward

func (*Client) CreateRewardShort

func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, error)

CreateRewardShort create a reward This API is used to create a reward for a draft season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=1 (CREATE)
  • Returns : created reward

func (*Client) DeleteReward deprecated

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

DeleteReward delete a reward This API is used to delete a reward permanently, only draft season reward can be deleted.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)

func (*Client) DeleteRewardShort

func (a *Client) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, error)

DeleteRewardShort delete a reward This API is used to delete a reward permanently, only draft season reward can be deleted.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=8 (DELETE)

func (*Client) GetReward deprecated

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

GetReward get a reward This API is used to get a reward for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : reward data

func (*Client) GetRewardShort

func (a *Client) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)

GetRewardShort get a reward This API is used to get a reward for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : reward data

func (*Client) PublicBulkClaimUserRewards deprecated

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

PublicBulkClaimUserRewards bulk claim all remained rewards This API is used to bulk claim all remained rewards, season only located in non-publisher namespace.

Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) PublicBulkClaimUserRewardsShort

func (a *Client) PublicBulkClaimUserRewardsShort(params *PublicBulkClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicBulkClaimUserRewardsOK, error)

PublicBulkClaimUserRewardsShort bulk claim all remained rewards This API is used to bulk claim all remained rewards, season only located in non-publisher namespace.

Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) PublicClaimUserReward deprecated

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

PublicClaimUserReward claim tier reward This API is used to claim reward, season only located in non-publisher namespace.

Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) PublicClaimUserRewardShort

func (a *Client) PublicClaimUserRewardShort(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, error)

PublicClaimUserRewardShort claim tier reward This API is used to claim reward, season only located in non-publisher namespace.

Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:SEASONPASS", action=4 (UPDATE)
  • Returns : user season data

func (*Client) QueryRewards deprecated

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

QueryRewards query all rewards for a season This API is used to query rewards for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : the list of rewards

func (*Client) QueryRewardsShort

func (a *Client) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)

QueryRewardsShort query all rewards for a season This API is used to query rewards for a season.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=2 (READ)
  • Returns : the list of rewards

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateReward deprecated

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

UpdateReward update a reward This API is used to update a reward. Only draft season reward can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)
  • Returns : updated reward

func (*Client) UpdateRewardShort

func (a *Client) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)

UpdateRewardShort update a reward This API is used to update a reward. Only draft season reward can be updated.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:SEASONPASS", action=4 (UPDATE)
  • Returns : updated reward

type ClientService

type ClientService interface {
	QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsBadRequest, *QueryRewardsNotFound, error)
	QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
	CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error)
	CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, error)
	GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardBadRequest, *GetRewardNotFound, error)
	GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
	DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, *DeleteRewardBadRequest, *DeleteRewardNotFound, *DeleteRewardConflict, error)
	DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, error)
	UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, *UpdateRewardConflict, *UpdateRewardUnprocessableEntity, error)
	UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
	PublicClaimUserReward(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, *PublicClaimUserRewardBadRequest, *PublicClaimUserRewardNotFound, *PublicClaimUserRewardConflict, error)
	PublicClaimUserRewardShort(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, error)
	PublicBulkClaimUserRewards(params *PublicBulkClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicBulkClaimUserRewardsOK, *PublicBulkClaimUserRewardsBadRequest, *PublicBulkClaimUserRewardsNotFound, error)
	PublicBulkClaimUserRewardsShort(params *PublicBulkClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicBulkClaimUserRewardsOK, 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 reward API client.

type CreateRewardBadRequest

type CreateRewardBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr><tr><td>49143</td><td>Item type not match</td></tr></table>

func NewCreateRewardBadRequest

func NewCreateRewardBadRequest() *CreateRewardBadRequest

NewCreateRewardBadRequest creates a CreateRewardBadRequest with default headers values

func (*CreateRewardBadRequest) Error

func (o *CreateRewardBadRequest) Error() string

func (*CreateRewardBadRequest) GetPayload

func (*CreateRewardBadRequest) ToJSONString added in v0.25.0

func (o *CreateRewardBadRequest) ToJSONString() string

type CreateRewardConflict

type CreateRewardConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr><tr><td>49173</td><td>Reward [{code}] already exists in the season</td></tr></table>

func NewCreateRewardConflict

func NewCreateRewardConflict() *CreateRewardConflict

NewCreateRewardConflict creates a CreateRewardConflict with default headers values

func (*CreateRewardConflict) Error

func (o *CreateRewardConflict) Error() string

func (*CreateRewardConflict) GetPayload

func (*CreateRewardConflict) ToJSONString added in v0.25.0

func (o *CreateRewardConflict) ToJSONString() string

type CreateRewardCreated

type CreateRewardCreated struct {
	Payload *seasonpassclientmodels.RewardInfo
}

CreateRewardCreated handles this case with default header values.

successful operation

func NewCreateRewardCreated

func NewCreateRewardCreated() *CreateRewardCreated

NewCreateRewardCreated creates a CreateRewardCreated with default headers values

func (*CreateRewardCreated) Error

func (o *CreateRewardCreated) Error() string

func (*CreateRewardCreated) GetPayload

func (*CreateRewardCreated) ToJSONString added in v0.25.0

func (o *CreateRewardCreated) ToJSONString() string

type CreateRewardNotFound

type CreateRewardNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

CreateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreateRewardNotFound

func NewCreateRewardNotFound() *CreateRewardNotFound

NewCreateRewardNotFound creates a CreateRewardNotFound with default headers values

func (*CreateRewardNotFound) Error

func (o *CreateRewardNotFound) Error() string

func (*CreateRewardNotFound) GetPayload

func (*CreateRewardNotFound) ToJSONString added in v0.25.0

func (o *CreateRewardNotFound) ToJSONString() string

type CreateRewardParams

type CreateRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.RewardCreate
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

CreateRewardParams contains all the parameters to send to the API endpoint for the create reward operation typically these are written to a http.Request

func NewCreateRewardParams

func NewCreateRewardParams() *CreateRewardParams

NewCreateRewardParams creates a new CreateRewardParams object with the default values initialized.

func NewCreateRewardParamsWithContext

func NewCreateRewardParamsWithContext(ctx context.Context) *CreateRewardParams

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

func NewCreateRewardParamsWithHTTPClient

func NewCreateRewardParamsWithHTTPClient(client *http.Client) *CreateRewardParams

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

func NewCreateRewardParamsWithTimeout

func NewCreateRewardParamsWithTimeout(timeout time.Duration) *CreateRewardParams

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

func (*CreateRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create reward params

func (*CreateRewardParams) SetBody

SetBody adds the body to the create reward params

func (*CreateRewardParams) SetContext

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

SetContext adds the context to the create reward params

func (*CreateRewardParams) SetFlightId added in v0.63.0

func (o *CreateRewardParams) SetFlightId(flightId string)

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

func (*CreateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the create reward params

func (*CreateRewardParams) SetNamespace

func (o *CreateRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create reward params

func (*CreateRewardParams) SetSeasonID

func (o *CreateRewardParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the create reward params

func (*CreateRewardParams) SetTimeout

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

SetTimeout adds the timeout to the create reward params

func (*CreateRewardParams) WithBody

WithBody adds the body to the create reward params

func (*CreateRewardParams) WithContext

WithContext adds the context to the create reward params

func (*CreateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the create reward params

func (*CreateRewardParams) WithSeasonID

func (o *CreateRewardParams) WithSeasonID(seasonID string) *CreateRewardParams

WithSeasonID adds the seasonID to the create reward params

func (*CreateRewardParams) WithTimeout

func (o *CreateRewardParams) WithTimeout(timeout time.Duration) *CreateRewardParams

WithTimeout adds the timeout to the create reward params

func (*CreateRewardParams) WriteToRequest

func (o *CreateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateRewardReader

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

CreateRewardReader is a Reader for the CreateReward structure.

func (*CreateRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateRewardUnprocessableEntity

type CreateRewardUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

CreateRewardUnprocessableEntity 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 NewCreateRewardUnprocessableEntity

func NewCreateRewardUnprocessableEntity() *CreateRewardUnprocessableEntity

NewCreateRewardUnprocessableEntity creates a CreateRewardUnprocessableEntity with default headers values

func (*CreateRewardUnprocessableEntity) Error

func (*CreateRewardUnprocessableEntity) GetPayload

func (*CreateRewardUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreateRewardUnprocessableEntity) ToJSONString() string

type DeleteRewardBadRequest

type DeleteRewardBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewDeleteRewardBadRequest

func NewDeleteRewardBadRequest() *DeleteRewardBadRequest

NewDeleteRewardBadRequest creates a DeleteRewardBadRequest with default headers values

func (*DeleteRewardBadRequest) Error

func (o *DeleteRewardBadRequest) Error() string

func (*DeleteRewardBadRequest) GetPayload

func (*DeleteRewardBadRequest) ToJSONString added in v0.25.0

func (o *DeleteRewardBadRequest) ToJSONString() string

type DeleteRewardConflict

type DeleteRewardConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Season is not updatable in status [{status}]</td></tr><tr><td>49179</td><td>Reward [{code}] is in use</td></tr></table>

func NewDeleteRewardConflict

func NewDeleteRewardConflict() *DeleteRewardConflict

NewDeleteRewardConflict creates a DeleteRewardConflict with default headers values

func (*DeleteRewardConflict) Error

func (o *DeleteRewardConflict) Error() string

func (*DeleteRewardConflict) GetPayload

func (*DeleteRewardConflict) ToJSONString added in v0.25.0

func (o *DeleteRewardConflict) ToJSONString() string

type DeleteRewardNoContent

type DeleteRewardNoContent struct {
}

DeleteRewardNoContent handles this case with default header values.

Delete reward successfully

func NewDeleteRewardNoContent

func NewDeleteRewardNoContent() *DeleteRewardNoContent

NewDeleteRewardNoContent creates a DeleteRewardNoContent with default headers values

func (*DeleteRewardNoContent) Error

func (o *DeleteRewardNoContent) Error() string

type DeleteRewardNotFound

type DeleteRewardNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

DeleteRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteRewardNotFound

func NewDeleteRewardNotFound() *DeleteRewardNotFound

NewDeleteRewardNotFound creates a DeleteRewardNotFound with default headers values

func (*DeleteRewardNotFound) Error

func (o *DeleteRewardNotFound) Error() string

func (*DeleteRewardNotFound) GetPayload

func (*DeleteRewardNotFound) ToJSONString added in v0.25.0

func (o *DeleteRewardNotFound) ToJSONString() string

type DeleteRewardParams

type DeleteRewardParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

DeleteRewardParams contains all the parameters to send to the API endpoint for the delete reward operation typically these are written to a http.Request

func NewDeleteRewardParams

func NewDeleteRewardParams() *DeleteRewardParams

NewDeleteRewardParams creates a new DeleteRewardParams object with the default values initialized.

func NewDeleteRewardParamsWithContext

func NewDeleteRewardParamsWithContext(ctx context.Context) *DeleteRewardParams

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

func NewDeleteRewardParamsWithHTTPClient

func NewDeleteRewardParamsWithHTTPClient(client *http.Client) *DeleteRewardParams

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

func NewDeleteRewardParamsWithTimeout

func NewDeleteRewardParamsWithTimeout(timeout time.Duration) *DeleteRewardParams

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

func (*DeleteRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete reward params

func (*DeleteRewardParams) SetCode

func (o *DeleteRewardParams) SetCode(code string)

SetCode adds the code to the delete reward params

func (*DeleteRewardParams) SetContext

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

SetContext adds the context to the delete reward params

func (*DeleteRewardParams) SetFlightId added in v0.63.0

func (o *DeleteRewardParams) SetFlightId(flightId string)

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

func (*DeleteRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the delete reward params

func (*DeleteRewardParams) SetNamespace

func (o *DeleteRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete reward params

func (*DeleteRewardParams) SetSeasonID

func (o *DeleteRewardParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the delete reward params

func (*DeleteRewardParams) SetTimeout

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

SetTimeout adds the timeout to the delete reward params

func (*DeleteRewardParams) WithCode

func (o *DeleteRewardParams) WithCode(code string) *DeleteRewardParams

WithCode adds the code to the delete reward params

func (*DeleteRewardParams) WithContext

WithContext adds the context to the delete reward params

func (*DeleteRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) WithNamespace

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

WithNamespace adds the namespace to the delete reward params

func (*DeleteRewardParams) WithSeasonID

func (o *DeleteRewardParams) WithSeasonID(seasonID string) *DeleteRewardParams

WithSeasonID adds the seasonID to the delete reward params

func (*DeleteRewardParams) WithTimeout

func (o *DeleteRewardParams) WithTimeout(timeout time.Duration) *DeleteRewardParams

WithTimeout adds the timeout to the delete reward params

func (*DeleteRewardParams) WriteToRequest

func (o *DeleteRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteRewardReader

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

DeleteRewardReader is a Reader for the DeleteReward structure.

func (*DeleteRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRewardBadRequest

type GetRewardBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GetRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewGetRewardBadRequest

func NewGetRewardBadRequest() *GetRewardBadRequest

NewGetRewardBadRequest creates a GetRewardBadRequest with default headers values

func (*GetRewardBadRequest) Error

func (o *GetRewardBadRequest) Error() string

func (*GetRewardBadRequest) GetPayload

func (*GetRewardBadRequest) ToJSONString added in v0.25.0

func (o *GetRewardBadRequest) ToJSONString() string

type GetRewardNotFound

type GetRewardNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

GetRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr></table>

func NewGetRewardNotFound

func NewGetRewardNotFound() *GetRewardNotFound

NewGetRewardNotFound creates a GetRewardNotFound with default headers values

func (*GetRewardNotFound) Error

func (o *GetRewardNotFound) Error() string

func (*GetRewardNotFound) GetPayload

func (*GetRewardNotFound) ToJSONString added in v0.25.0

func (o *GetRewardNotFound) ToJSONString() string

type GetRewardOK

type GetRewardOK struct {
	Payload *seasonpassclientmodels.RewardInfo
}

GetRewardOK handles this case with default header values.

successful operation

func NewGetRewardOK

func NewGetRewardOK() *GetRewardOK

NewGetRewardOK creates a GetRewardOK with default headers values

func (*GetRewardOK) Error

func (o *GetRewardOK) Error() string

func (*GetRewardOK) GetPayload

func (*GetRewardOK) ToJSONString added in v0.25.0

func (o *GetRewardOK) ToJSONString() string

type GetRewardParams

type GetRewardParams struct {

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

	*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

GetRewardParams contains all the parameters to send to the API endpoint for the get reward operation typically these are written to a http.Request

func NewGetRewardParams

func NewGetRewardParams() *GetRewardParams

NewGetRewardParams creates a new GetRewardParams object with the default values initialized.

func NewGetRewardParamsWithContext

func NewGetRewardParamsWithContext(ctx context.Context) *GetRewardParams

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

func NewGetRewardParamsWithHTTPClient

func NewGetRewardParamsWithHTTPClient(client *http.Client) *GetRewardParams

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

func NewGetRewardParamsWithTimeout

func NewGetRewardParamsWithTimeout(timeout time.Duration) *GetRewardParams

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

func (*GetRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get reward params

func (*GetRewardParams) SetCode

func (o *GetRewardParams) SetCode(code string)

SetCode adds the code to the get reward params

func (*GetRewardParams) SetContext

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

SetContext adds the context to the get reward params

func (*GetRewardParams) SetFlightId added in v0.63.0

func (o *GetRewardParams) SetFlightId(flightId string)

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

func (*GetRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward params

func (*GetRewardParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get reward params

func (*GetRewardParams) SetNamespace

func (o *GetRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward params

func (*GetRewardParams) SetSeasonID

func (o *GetRewardParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the get reward params

func (*GetRewardParams) SetTimeout

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

SetTimeout adds the timeout to the get reward params

func (*GetRewardParams) WithCode

func (o *GetRewardParams) WithCode(code string) *GetRewardParams

WithCode adds the code to the get reward params

func (*GetRewardParams) WithContext

func (o *GetRewardParams) WithContext(ctx context.Context) *GetRewardParams

WithContext adds the context to the get reward params

func (*GetRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reward params

func (*GetRewardParams) WithNamespace

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

WithNamespace adds the namespace to the get reward params

func (*GetRewardParams) WithSeasonID

func (o *GetRewardParams) WithSeasonID(seasonID string) *GetRewardParams

WithSeasonID adds the seasonID to the get reward params

func (*GetRewardParams) WithTimeout

func (o *GetRewardParams) WithTimeout(timeout time.Duration) *GetRewardParams

WithTimeout adds the timeout to the get reward params

func (*GetRewardParams) WriteToRequest

func (o *GetRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetRewardReader

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

GetRewardReader is a Reader for the GetReward structure.

func (*GetRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicBulkClaimUserRewardsBadRequest

type PublicBulkClaimUserRewardsBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

PublicBulkClaimUserRewardsBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49124</td><td>Manual claim not supported</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewPublicBulkClaimUserRewardsBadRequest

func NewPublicBulkClaimUserRewardsBadRequest() *PublicBulkClaimUserRewardsBadRequest

NewPublicBulkClaimUserRewardsBadRequest creates a PublicBulkClaimUserRewardsBadRequest with default headers values

func (*PublicBulkClaimUserRewardsBadRequest) Error

func (*PublicBulkClaimUserRewardsBadRequest) GetPayload

func (*PublicBulkClaimUserRewardsBadRequest) ToJSONString added in v0.25.0

func (o *PublicBulkClaimUserRewardsBadRequest) ToJSONString() string

type PublicBulkClaimUserRewardsNotFound

type PublicBulkClaimUserRewardsNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

PublicBulkClaimUserRewardsNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49148</td><td>User season does not exist</td></tr><tr><td>49147</td><td>Published season does not exist</td></tr></table>

func NewPublicBulkClaimUserRewardsNotFound

func NewPublicBulkClaimUserRewardsNotFound() *PublicBulkClaimUserRewardsNotFound

NewPublicBulkClaimUserRewardsNotFound creates a PublicBulkClaimUserRewardsNotFound with default headers values

func (*PublicBulkClaimUserRewardsNotFound) Error

func (*PublicBulkClaimUserRewardsNotFound) GetPayload

func (*PublicBulkClaimUserRewardsNotFound) ToJSONString added in v0.25.0

func (o *PublicBulkClaimUserRewardsNotFound) ToJSONString() string

type PublicBulkClaimUserRewardsOK

type PublicBulkClaimUserRewardsOK struct {
	Payload *seasonpassclientmodels.ClaimableRewards
}

PublicBulkClaimUserRewardsOK handles this case with default header values.

successful operation

func NewPublicBulkClaimUserRewardsOK

func NewPublicBulkClaimUserRewardsOK() *PublicBulkClaimUserRewardsOK

NewPublicBulkClaimUserRewardsOK creates a PublicBulkClaimUserRewardsOK with default headers values

func (*PublicBulkClaimUserRewardsOK) Error

func (*PublicBulkClaimUserRewardsOK) GetPayload

func (*PublicBulkClaimUserRewardsOK) ToJSONString added in v0.25.0

func (o *PublicBulkClaimUserRewardsOK) ToJSONString() string

type PublicBulkClaimUserRewardsParams

type PublicBulkClaimUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  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
}

PublicBulkClaimUserRewardsParams contains all the parameters to send to the API endpoint for the public bulk claim user rewards operation typically these are written to a http.Request

func NewPublicBulkClaimUserRewardsParams

func NewPublicBulkClaimUserRewardsParams() *PublicBulkClaimUserRewardsParams

NewPublicBulkClaimUserRewardsParams creates a new PublicBulkClaimUserRewardsParams object with the default values initialized.

func NewPublicBulkClaimUserRewardsParamsWithContext

func NewPublicBulkClaimUserRewardsParamsWithContext(ctx context.Context) *PublicBulkClaimUserRewardsParams

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

func NewPublicBulkClaimUserRewardsParamsWithHTTPClient

func NewPublicBulkClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicBulkClaimUserRewardsParams

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

func NewPublicBulkClaimUserRewardsParamsWithTimeout

func NewPublicBulkClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicBulkClaimUserRewardsParams

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

func (*PublicBulkClaimUserRewardsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetContext

SetContext adds the context to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetFlightId added in v0.63.0

func (o *PublicBulkClaimUserRewardsParams) SetFlightId(flightId string)

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

func (*PublicBulkClaimUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetNamespace

func (o *PublicBulkClaimUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) SetUserID

func (o *PublicBulkClaimUserRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WithContext

WithContext adds the context to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WithNamespace

WithNamespace adds the namespace to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WithUserID

WithUserID adds the userID to the public bulk claim user rewards params

func (*PublicBulkClaimUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicBulkClaimUserRewardsReader

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

PublicBulkClaimUserRewardsReader is a Reader for the PublicBulkClaimUserRewards structure.

func (*PublicBulkClaimUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicClaimUserRewardBadRequest

type PublicClaimUserRewardBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

PublicClaimUserRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49124</td><td>Manual claim not supported</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewPublicClaimUserRewardBadRequest

func NewPublicClaimUserRewardBadRequest() *PublicClaimUserRewardBadRequest

NewPublicClaimUserRewardBadRequest creates a PublicClaimUserRewardBadRequest with default headers values

func (*PublicClaimUserRewardBadRequest) Error

func (*PublicClaimUserRewardBadRequest) GetPayload

func (*PublicClaimUserRewardBadRequest) ToJSONString added in v0.25.0

func (o *PublicClaimUserRewardBadRequest) ToJSONString() string

type PublicClaimUserRewardConflict

type PublicClaimUserRewardConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

PublicClaimUserRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49182</td><td>Reward is already claimed</td></tr><tr><td>49188</td><td>Reward is claiming</td></tr></table>

func NewPublicClaimUserRewardConflict

func NewPublicClaimUserRewardConflict() *PublicClaimUserRewardConflict

NewPublicClaimUserRewardConflict creates a PublicClaimUserRewardConflict with default headers values

func (*PublicClaimUserRewardConflict) Error

func (*PublicClaimUserRewardConflict) GetPayload

func (*PublicClaimUserRewardConflict) ToJSONString added in v0.25.0

func (o *PublicClaimUserRewardConflict) ToJSONString() string

type PublicClaimUserRewardNotFound

type PublicClaimUserRewardNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

PublicClaimUserRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr><tr><td>49148</td><td>User season does not exist</td></tr><tr><td>49147</td><td>Published season does not exist</td></tr></table>

func NewPublicClaimUserRewardNotFound

func NewPublicClaimUserRewardNotFound() *PublicClaimUserRewardNotFound

NewPublicClaimUserRewardNotFound creates a PublicClaimUserRewardNotFound with default headers values

func (*PublicClaimUserRewardNotFound) Error

func (*PublicClaimUserRewardNotFound) GetPayload

func (*PublicClaimUserRewardNotFound) ToJSONString added in v0.25.0

func (o *PublicClaimUserRewardNotFound) ToJSONString() string

type PublicClaimUserRewardOK

type PublicClaimUserRewardOK struct {
	Payload *seasonpassclientmodels.ClaimableRewards
}

PublicClaimUserRewardOK handles this case with default header values.

successful operation

func NewPublicClaimUserRewardOK

func NewPublicClaimUserRewardOK() *PublicClaimUserRewardOK

NewPublicClaimUserRewardOK creates a PublicClaimUserRewardOK with default headers values

func (*PublicClaimUserRewardOK) Error

func (o *PublicClaimUserRewardOK) Error() string

func (*PublicClaimUserRewardOK) GetPayload

func (*PublicClaimUserRewardOK) ToJSONString added in v0.25.0

func (o *PublicClaimUserRewardOK) ToJSONString() string

type PublicClaimUserRewardParams

type PublicClaimUserRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.UserRewardClaim
	/*Namespace
	  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
}

PublicClaimUserRewardParams contains all the parameters to send to the API endpoint for the public claim user reward operation typically these are written to a http.Request

func NewPublicClaimUserRewardParams

func NewPublicClaimUserRewardParams() *PublicClaimUserRewardParams

NewPublicClaimUserRewardParams creates a new PublicClaimUserRewardParams object with the default values initialized.

func NewPublicClaimUserRewardParamsWithContext

func NewPublicClaimUserRewardParamsWithContext(ctx context.Context) *PublicClaimUserRewardParams

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

func NewPublicClaimUserRewardParamsWithHTTPClient

func NewPublicClaimUserRewardParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardParams

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

func NewPublicClaimUserRewardParamsWithTimeout

func NewPublicClaimUserRewardParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardParams

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

func (*PublicClaimUserRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the public claim user reward params

func (*PublicClaimUserRewardParams) SetBody

SetBody adds the body to the public claim user reward params

func (*PublicClaimUserRewardParams) SetContext

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

SetContext adds the context to the public claim user reward params

func (*PublicClaimUserRewardParams) SetFlightId added in v0.63.0

func (o *PublicClaimUserRewardParams) SetFlightId(flightId string)

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

func (*PublicClaimUserRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public claim user reward params

func (*PublicClaimUserRewardParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the public claim user reward params

func (*PublicClaimUserRewardParams) SetNamespace

func (o *PublicClaimUserRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public claim user reward params

func (*PublicClaimUserRewardParams) SetTimeout

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

SetTimeout adds the timeout to the public claim user reward params

func (*PublicClaimUserRewardParams) SetUserID

func (o *PublicClaimUserRewardParams) SetUserID(userID string)

SetUserID adds the userId to the public claim user reward params

func (*PublicClaimUserRewardParams) WithBody

WithBody adds the body to the public claim user reward params

func (*PublicClaimUserRewardParams) WithContext

WithContext adds the context to the public claim user reward params

func (*PublicClaimUserRewardParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public claim user reward params

func (*PublicClaimUserRewardParams) WithNamespace

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

WithNamespace adds the namespace to the public claim user reward params

func (*PublicClaimUserRewardParams) WithTimeout

WithTimeout adds the timeout to the public claim user reward params

func (*PublicClaimUserRewardParams) WithUserID

WithUserID adds the userID to the public claim user reward params

func (*PublicClaimUserRewardParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicClaimUserRewardReader

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

PublicClaimUserRewardReader is a Reader for the PublicClaimUserReward structure.

func (*PublicClaimUserRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewardsBadRequest

type QueryRewardsBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryRewardsBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr></table>

func NewQueryRewardsBadRequest

func NewQueryRewardsBadRequest() *QueryRewardsBadRequest

NewQueryRewardsBadRequest creates a QueryRewardsBadRequest with default headers values

func (*QueryRewardsBadRequest) Error

func (o *QueryRewardsBadRequest) Error() string

func (*QueryRewardsBadRequest) GetPayload

func (*QueryRewardsBadRequest) ToJSONString added in v0.25.0

func (o *QueryRewardsBadRequest) ToJSONString() string

type QueryRewardsNotFound

type QueryRewardsNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

QueryRewardsNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewQueryRewardsNotFound

func NewQueryRewardsNotFound() *QueryRewardsNotFound

NewQueryRewardsNotFound creates a QueryRewardsNotFound with default headers values

func (*QueryRewardsNotFound) Error

func (o *QueryRewardsNotFound) Error() string

func (*QueryRewardsNotFound) GetPayload

func (*QueryRewardsNotFound) ToJSONString added in v0.25.0

func (o *QueryRewardsNotFound) ToJSONString() string

type QueryRewardsOK

type QueryRewardsOK struct {
	Payload []*seasonpassclientmodels.RewardInfo
}

QueryRewardsOK handles this case with default header values.

successful operation

func NewQueryRewardsOK

func NewQueryRewardsOK() *QueryRewardsOK

NewQueryRewardsOK creates a QueryRewardsOK with default headers values

func (*QueryRewardsOK) Error

func (o *QueryRewardsOK) Error() string

func (*QueryRewardsOK) GetPayload

func (*QueryRewardsOK) ToJSONString added in v0.25.0

func (o *QueryRewardsOK) ToJSONString() string

type QueryRewardsParams

type QueryRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID string
	/*Q*/
	Q *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
}

QueryRewardsParams contains all the parameters to send to the API endpoint for the query rewards operation typically these are written to a http.Request

func NewQueryRewardsParams

func NewQueryRewardsParams() *QueryRewardsParams

NewQueryRewardsParams creates a new QueryRewardsParams object with the default values initialized.

func NewQueryRewardsParamsWithContext

func NewQueryRewardsParamsWithContext(ctx context.Context) *QueryRewardsParams

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

func NewQueryRewardsParamsWithHTTPClient

func NewQueryRewardsParamsWithHTTPClient(client *http.Client) *QueryRewardsParams

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

func NewQueryRewardsParamsWithTimeout

func NewQueryRewardsParamsWithTimeout(timeout time.Duration) *QueryRewardsParams

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

func (*QueryRewardsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query rewards params

func (*QueryRewardsParams) SetContext

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

SetContext adds the context to the query rewards params

func (*QueryRewardsParams) SetFlightId added in v0.63.0

func (o *QueryRewardsParams) SetFlightId(flightId string)

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

func (*QueryRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards params

func (*QueryRewardsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query rewards params

func (*QueryRewardsParams) SetNamespace

func (o *QueryRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query rewards params

func (*QueryRewardsParams) SetQ

func (o *QueryRewardsParams) SetQ(q *string)

SetQ adds the q to the query rewards params

func (*QueryRewardsParams) SetSeasonID

func (o *QueryRewardsParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the query rewards params

func (*QueryRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the query rewards params

func (*QueryRewardsParams) WithContext

WithContext adds the context to the query rewards params

func (*QueryRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query rewards params

func (*QueryRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the query rewards params

func (*QueryRewardsParams) WithQ

WithQ adds the q to the query rewards params

func (*QueryRewardsParams) WithSeasonID

func (o *QueryRewardsParams) WithSeasonID(seasonID string) *QueryRewardsParams

WithSeasonID adds the seasonID to the query rewards params

func (*QueryRewardsParams) WithTimeout

func (o *QueryRewardsParams) WithTimeout(timeout time.Duration) *QueryRewardsParams

WithTimeout adds the timeout to the query rewards params

func (*QueryRewardsParams) WriteToRequest

func (o *QueryRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type QueryRewardsReader

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

QueryRewardsReader is a Reader for the QueryRewards structure.

func (*QueryRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRewardBadRequest

type UpdateRewardBadRequest struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20026</td><td>publisher namespace not allowed</td></tr><tr><td>49143</td><td>Item type not match</td></tr></table>

func NewUpdateRewardBadRequest

func NewUpdateRewardBadRequest() *UpdateRewardBadRequest

NewUpdateRewardBadRequest creates a UpdateRewardBadRequest with default headers values

func (*UpdateRewardBadRequest) Error

func (o *UpdateRewardBadRequest) Error() string

func (*UpdateRewardBadRequest) GetPayload

func (*UpdateRewardBadRequest) ToJSONString added in v0.25.0

func (o *UpdateRewardBadRequest) ToJSONString() string

type UpdateRewardConflict

type UpdateRewardConflict struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49171</td><td>Invalid season status [{status}]</td></tr></table>

func NewUpdateRewardConflict

func NewUpdateRewardConflict() *UpdateRewardConflict

NewUpdateRewardConflict creates a UpdateRewardConflict with default headers values

func (*UpdateRewardConflict) Error

func (o *UpdateRewardConflict) Error() string

func (*UpdateRewardConflict) GetPayload

func (*UpdateRewardConflict) ToJSONString added in v0.25.0

func (o *UpdateRewardConflict) ToJSONString() string

type UpdateRewardNotFound

type UpdateRewardNotFound struct {
	Payload *seasonpassclientmodels.ErrorEntity
}

UpdateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>49144</td><td>Reward [{code}] does not exist</td></tr><tr><td>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>49143</td><td>Season [{seasonId}] does not exist in namespace [{namespace}]</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateRewardNotFound

func NewUpdateRewardNotFound() *UpdateRewardNotFound

NewUpdateRewardNotFound creates a UpdateRewardNotFound with default headers values

func (*UpdateRewardNotFound) Error

func (o *UpdateRewardNotFound) Error() string

func (*UpdateRewardNotFound) GetPayload

func (*UpdateRewardNotFound) ToJSONString added in v0.25.0

func (o *UpdateRewardNotFound) ToJSONString() string

type UpdateRewardOK

type UpdateRewardOK struct {
	Payload *seasonpassclientmodels.RewardInfo
}

UpdateRewardOK handles this case with default header values.

successful operation

func NewUpdateRewardOK

func NewUpdateRewardOK() *UpdateRewardOK

NewUpdateRewardOK creates a UpdateRewardOK with default headers values

func (*UpdateRewardOK) Error

func (o *UpdateRewardOK) Error() string

func (*UpdateRewardOK) GetPayload

func (*UpdateRewardOK) ToJSONString added in v0.25.0

func (o *UpdateRewardOK) ToJSONString() string

type UpdateRewardParams

type UpdateRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *seasonpassclientmodels.RewardUpdate
	/*Code*/
	Code string
	/*Namespace*/
	Namespace string
	/*SeasonID*/
	SeasonID 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
}

UpdateRewardParams contains all the parameters to send to the API endpoint for the update reward operation typically these are written to a http.Request

func NewUpdateRewardParams

func NewUpdateRewardParams() *UpdateRewardParams

NewUpdateRewardParams creates a new UpdateRewardParams object with the default values initialized.

func NewUpdateRewardParamsWithContext

func NewUpdateRewardParamsWithContext(ctx context.Context) *UpdateRewardParams

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

func NewUpdateRewardParamsWithHTTPClient

func NewUpdateRewardParamsWithHTTPClient(client *http.Client) *UpdateRewardParams

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

func NewUpdateRewardParamsWithTimeout

func NewUpdateRewardParamsWithTimeout(timeout time.Duration) *UpdateRewardParams

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

func (*UpdateRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update reward params

func (*UpdateRewardParams) SetBody

SetBody adds the body to the update reward params

func (*UpdateRewardParams) SetCode

func (o *UpdateRewardParams) SetCode(code string)

SetCode adds the code to the update reward params

func (*UpdateRewardParams) SetContext

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

SetContext adds the context to the update reward params

func (*UpdateRewardParams) SetFlightId added in v0.63.0

func (o *UpdateRewardParams) SetFlightId(flightId string)

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

func (*UpdateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the update reward params

func (*UpdateRewardParams) SetNamespace

func (o *UpdateRewardParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update reward params

func (*UpdateRewardParams) SetSeasonID

func (o *UpdateRewardParams) SetSeasonID(seasonID string)

SetSeasonID adds the seasonId to the update reward params

func (*UpdateRewardParams) SetTimeout

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

SetTimeout adds the timeout to the update reward params

func (*UpdateRewardParams) WithBody

WithBody adds the body to the update reward params

func (*UpdateRewardParams) WithCode

func (o *UpdateRewardParams) WithCode(code string) *UpdateRewardParams

WithCode adds the code to the update reward params

func (*UpdateRewardParams) WithContext

WithContext adds the context to the update reward params

func (*UpdateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the update reward params

func (*UpdateRewardParams) WithSeasonID

func (o *UpdateRewardParams) WithSeasonID(seasonID string) *UpdateRewardParams

WithSeasonID adds the seasonID to the update reward params

func (*UpdateRewardParams) WithTimeout

func (o *UpdateRewardParams) WithTimeout(timeout time.Duration) *UpdateRewardParams

WithTimeout adds the timeout to the update reward params

func (*UpdateRewardParams) WriteToRequest

func (o *UpdateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateRewardReader

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

UpdateRewardReader is a Reader for the UpdateReward structure.

func (*UpdateRewardReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateRewardUnprocessableEntity

type UpdateRewardUnprocessableEntity struct {
	Payload *seasonpassclientmodels.ValidationErrorEntity
}

UpdateRewardUnprocessableEntity 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 NewUpdateRewardUnprocessableEntity

func NewUpdateRewardUnprocessableEntity() *UpdateRewardUnprocessableEntity

NewUpdateRewardUnprocessableEntity creates a UpdateRewardUnprocessableEntity with default headers values

func (*UpdateRewardUnprocessableEntity) Error

func (*UpdateRewardUnprocessableEntity) GetPayload

func (*UpdateRewardUnprocessableEntity) ToJSONString added in v0.25.0

func (o *UpdateRewardUnprocessableEntity) ToJSONString() string

Jump to

Keyboard shortcuts

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