Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, ...)deprecated
- func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, error)
- func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, *DeleteRewardBadRequest, *DeleteRewardNotFound, ...)deprecated
- func (a *Client) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, error)
- func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardBadRequest, *GetRewardNotFound, error)deprecated
- func (a *Client) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
- func (a *Client) PublicBulkClaimUserRewards(params *PublicBulkClaimUserRewardsParams, ...) (*PublicBulkClaimUserRewardsOK, *PublicBulkClaimUserRewardsBadRequest, ...)deprecated
- func (a *Client) PublicBulkClaimUserRewardsShort(params *PublicBulkClaimUserRewardsParams, ...) (*PublicBulkClaimUserRewardsOK, error)
- func (a *Client) PublicClaimUserReward(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, *PublicClaimUserRewardBadRequest, ...)deprecated
- func (a *Client) PublicClaimUserRewardShort(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, error)
- func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsBadRequest, *QueryRewardsNotFound, error)deprecated
- func (a *Client) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, ...)deprecated
- func (a *Client) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
- type ClientService
- type CreateRewardBadRequest
- type CreateRewardConflict
- type CreateRewardCreated
- type CreateRewardNotFound
- type CreateRewardParams
- func (o *CreateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateRewardParams) SetBody(body *seasonpassclientmodels.RewardCreate)
- func (o *CreateRewardParams) SetContext(ctx context.Context)
- func (o *CreateRewardParams) SetFlightId(flightId string)
- func (o *CreateRewardParams) SetHTTPClient(client *http.Client)
- func (o *CreateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateRewardParams) SetNamespace(namespace string)
- func (o *CreateRewardParams) SetSeasonID(seasonID string)
- func (o *CreateRewardParams) SetTimeout(timeout time.Duration)
- func (o *CreateRewardParams) WithBody(body *seasonpassclientmodels.RewardCreate) *CreateRewardParams
- func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
- func (o *CreateRewardParams) WithHTTPClient(client *http.Client) *CreateRewardParams
- func (o *CreateRewardParams) WithNamespace(namespace string) *CreateRewardParams
- func (o *CreateRewardParams) WithSeasonID(seasonID string) *CreateRewardParams
- func (o *CreateRewardParams) WithTimeout(timeout time.Duration) *CreateRewardParams
- func (o *CreateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRewardReader
- type CreateRewardUnprocessableEntity
- type DeleteRewardBadRequest
- type DeleteRewardConflict
- type DeleteRewardNoContent
- type DeleteRewardNotFound
- type DeleteRewardParams
- func (o *DeleteRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DeleteRewardParams) SetCode(code string)
- func (o *DeleteRewardParams) SetContext(ctx context.Context)
- func (o *DeleteRewardParams) SetFlightId(flightId string)
- func (o *DeleteRewardParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DeleteRewardParams) SetNamespace(namespace string)
- func (o *DeleteRewardParams) SetSeasonID(seasonID string)
- func (o *DeleteRewardParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRewardParams) WithCode(code string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
- func (o *DeleteRewardParams) WithHTTPClient(client *http.Client) *DeleteRewardParams
- func (o *DeleteRewardParams) WithNamespace(namespace string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithSeasonID(seasonID string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithTimeout(timeout time.Duration) *DeleteRewardParams
- func (o *DeleteRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRewardReader
- type GetRewardBadRequest
- type GetRewardNotFound
- type GetRewardOK
- type GetRewardParams
- func (o *GetRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetRewardParams) SetCode(code string)
- func (o *GetRewardParams) SetContext(ctx context.Context)
- func (o *GetRewardParams) SetFlightId(flightId string)
- func (o *GetRewardParams) SetHTTPClient(client *http.Client)
- func (o *GetRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetRewardParams) SetNamespace(namespace string)
- func (o *GetRewardParams) SetSeasonID(seasonID string)
- func (o *GetRewardParams) SetTimeout(timeout time.Duration)
- func (o *GetRewardParams) WithCode(code string) *GetRewardParams
- func (o *GetRewardParams) WithContext(ctx context.Context) *GetRewardParams
- func (o *GetRewardParams) WithHTTPClient(client *http.Client) *GetRewardParams
- func (o *GetRewardParams) WithNamespace(namespace string) *GetRewardParams
- func (o *GetRewardParams) WithSeasonID(seasonID string) *GetRewardParams
- func (o *GetRewardParams) WithTimeout(timeout time.Duration) *GetRewardParams
- func (o *GetRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRewardReader
- type PublicBulkClaimUserRewardsBadRequest
- type PublicBulkClaimUserRewardsNotFound
- type PublicBulkClaimUserRewardsOK
- type PublicBulkClaimUserRewardsParams
- func NewPublicBulkClaimUserRewardsParams() *PublicBulkClaimUserRewardsParams
- func NewPublicBulkClaimUserRewardsParamsWithContext(ctx context.Context) *PublicBulkClaimUserRewardsParams
- func NewPublicBulkClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicBulkClaimUserRewardsParams
- func NewPublicBulkClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicBulkClaimUserRewardsParams) SetContext(ctx context.Context)
- func (o *PublicBulkClaimUserRewardsParams) SetFlightId(flightId string)
- func (o *PublicBulkClaimUserRewardsParams) SetHTTPClient(client *http.Client)
- func (o *PublicBulkClaimUserRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicBulkClaimUserRewardsParams) SetNamespace(namespace string)
- func (o *PublicBulkClaimUserRewardsParams) SetTimeout(timeout time.Duration)
- func (o *PublicBulkClaimUserRewardsParams) SetUserID(userID string)
- func (o *PublicBulkClaimUserRewardsParams) WithContext(ctx context.Context) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) WithHTTPClient(client *http.Client) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) WithNamespace(namespace string) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) WithTimeout(timeout time.Duration) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) WithUserID(userID string) *PublicBulkClaimUserRewardsParams
- func (o *PublicBulkClaimUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicBulkClaimUserRewardsReader
- type PublicClaimUserRewardBadRequest
- type PublicClaimUserRewardConflict
- type PublicClaimUserRewardNotFound
- type PublicClaimUserRewardOK
- type PublicClaimUserRewardParams
- func NewPublicClaimUserRewardParams() *PublicClaimUserRewardParams
- func NewPublicClaimUserRewardParamsWithContext(ctx context.Context) *PublicClaimUserRewardParams
- func NewPublicClaimUserRewardParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardParams
- func NewPublicClaimUserRewardParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicClaimUserRewardParams) SetBody(body *seasonpassclientmodels.UserRewardClaim)
- func (o *PublicClaimUserRewardParams) SetContext(ctx context.Context)
- func (o *PublicClaimUserRewardParams) SetFlightId(flightId string)
- func (o *PublicClaimUserRewardParams) SetHTTPClient(client *http.Client)
- func (o *PublicClaimUserRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicClaimUserRewardParams) SetNamespace(namespace string)
- func (o *PublicClaimUserRewardParams) SetTimeout(timeout time.Duration)
- func (o *PublicClaimUserRewardParams) SetUserID(userID string)
- func (o *PublicClaimUserRewardParams) WithBody(body *seasonpassclientmodels.UserRewardClaim) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WithContext(ctx context.Context) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WithHTTPClient(client *http.Client) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WithNamespace(namespace string) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WithTimeout(timeout time.Duration) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WithUserID(userID string) *PublicClaimUserRewardParams
- func (o *PublicClaimUserRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicClaimUserRewardReader
- type QueryRewardsBadRequest
- type QueryRewardsNotFound
- type QueryRewardsOK
- type QueryRewardsParams
- func (o *QueryRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryRewardsParams) SetContext(ctx context.Context)
- func (o *QueryRewardsParams) SetFlightId(flightId string)
- func (o *QueryRewardsParams) SetHTTPClient(client *http.Client)
- func (o *QueryRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryRewardsParams) SetNamespace(namespace string)
- func (o *QueryRewardsParams) SetQ(q *string)
- func (o *QueryRewardsParams) SetSeasonID(seasonID string)
- func (o *QueryRewardsParams) SetTimeout(timeout time.Duration)
- func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
- func (o *QueryRewardsParams) WithHTTPClient(client *http.Client) *QueryRewardsParams
- func (o *QueryRewardsParams) WithNamespace(namespace string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithQ(q *string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithSeasonID(seasonID string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithTimeout(timeout time.Duration) *QueryRewardsParams
- func (o *QueryRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRewardsReader
- type UpdateRewardBadRequest
- type UpdateRewardConflict
- type UpdateRewardNotFound
- type UpdateRewardOK
- type UpdateRewardParams
- func (o *UpdateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateRewardParams) SetBody(body *seasonpassclientmodels.RewardUpdate)
- func (o *UpdateRewardParams) SetCode(code string)
- func (o *UpdateRewardParams) SetContext(ctx context.Context)
- func (o *UpdateRewardParams) SetFlightId(flightId string)
- func (o *UpdateRewardParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateRewardParams) SetNamespace(namespace string)
- func (o *UpdateRewardParams) SetSeasonID(seasonID string)
- func (o *UpdateRewardParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRewardParams) WithBody(body *seasonpassclientmodels.RewardUpdate) *UpdateRewardParams
- func (o *UpdateRewardParams) WithCode(code string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
- func (o *UpdateRewardParams) WithHTTPClient(client *http.Client) *UpdateRewardParams
- func (o *UpdateRewardParams) WithNamespace(namespace string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithSeasonID(seasonID string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithTimeout(timeout time.Duration) *UpdateRewardParams
- func (o *UpdateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRewardReader
- type UpdateRewardUnprocessableEntity
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
func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error)
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:
- 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:
- Returns : created reward
func (*Client) DeleteReward
deprecated
func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardNoContent, *DeleteRewardBadRequest, *DeleteRewardNotFound, *DeleteRewardConflict, error)
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:
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:
func (*Client) GetReward
deprecated
func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardBadRequest, *GetRewardNotFound, error)
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:
- 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:
- Returns : reward data
func (*Client) PublicBulkClaimUserRewards
deprecated
func (a *Client) PublicBulkClaimUserRewards(params *PublicBulkClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicBulkClaimUserRewardsOK, *PublicBulkClaimUserRewardsBadRequest, *PublicBulkClaimUserRewardsNotFound, error)
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:
- 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:
- Returns : user season data
func (*Client) PublicClaimUserReward
deprecated
func (a *Client) PublicClaimUserReward(params *PublicClaimUserRewardParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardOK, *PublicClaimUserRewardBadRequest, *PublicClaimUserRewardNotFound, *PublicClaimUserRewardConflict, error)
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:
- 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:
- Returns : user season data
func (*Client) QueryRewards
deprecated
func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsBadRequest, *QueryRewardsNotFound, error)
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:
- 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:
- 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
func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, *UpdateRewardConflict, *UpdateRewardUnprocessableEntity, error)
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:
- 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:
- 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 (o *CreateRewardBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *CreateRewardConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *CreateRewardCreated) GetPayload() *seasonpassclientmodels.RewardInfo
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 (o *CreateRewardNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 ¶
func (o *CreateRewardParams) SetBody(body *seasonpassclientmodels.RewardCreate)
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 ¶
func (o *CreateRewardParams) WithBody(body *seasonpassclientmodels.RewardCreate) *CreateRewardParams
WithBody adds the body to the create reward params
func (*CreateRewardParams) WithContext ¶
func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
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 (o *CreateRewardUnprocessableEntity) Error() string
func (*CreateRewardUnprocessableEntity) GetPayload ¶
func (o *CreateRewardUnprocessableEntity) GetPayload() *seasonpassclientmodels.ValidationErrorEntity
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 (o *DeleteRewardBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *DeleteRewardConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *DeleteRewardNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 ¶
func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
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 (o *GetRewardBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *GetRewardNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *GetRewardOK) GetPayload() *seasonpassclientmodels.RewardInfo
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 (o *PublicBulkClaimUserRewardsBadRequest) Error() string
func (*PublicBulkClaimUserRewardsBadRequest) GetPayload ¶
func (o *PublicBulkClaimUserRewardsBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *PublicBulkClaimUserRewardsNotFound) Error() string
func (*PublicBulkClaimUserRewardsNotFound) GetPayload ¶
func (o *PublicBulkClaimUserRewardsNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *PublicBulkClaimUserRewardsOK) Error() string
func (*PublicBulkClaimUserRewardsOK) GetPayload ¶
func (o *PublicBulkClaimUserRewardsOK) GetPayload() *seasonpassclientmodels.ClaimableRewards
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 ¶
func (o *PublicBulkClaimUserRewardsParams) SetContext(ctx context.Context)
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 ¶
func (o *PublicBulkClaimUserRewardsParams) WithContext(ctx context.Context) *PublicBulkClaimUserRewardsParams
WithContext adds the context to the public bulk claim user rewards params
func (*PublicBulkClaimUserRewardsParams) WithHTTPClient ¶
func (o *PublicBulkClaimUserRewardsParams) WithHTTPClient(client *http.Client) *PublicBulkClaimUserRewardsParams
WithHTTPClient adds the HTTPClient to the public bulk claim user rewards params
func (*PublicBulkClaimUserRewardsParams) WithNamespace ¶
func (o *PublicBulkClaimUserRewardsParams) WithNamespace(namespace string) *PublicBulkClaimUserRewardsParams
WithNamespace adds the namespace to the public bulk claim user rewards params
func (*PublicBulkClaimUserRewardsParams) WithTimeout ¶
func (o *PublicBulkClaimUserRewardsParams) WithTimeout(timeout time.Duration) *PublicBulkClaimUserRewardsParams
WithTimeout adds the timeout to the public bulk claim user rewards params
func (*PublicBulkClaimUserRewardsParams) WithUserID ¶
func (o *PublicBulkClaimUserRewardsParams) WithUserID(userID string) *PublicBulkClaimUserRewardsParams
WithUserID adds the userID to the public bulk claim user rewards params
func (*PublicBulkClaimUserRewardsParams) WriteToRequest ¶
func (o *PublicBulkClaimUserRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *PublicClaimUserRewardBadRequest) Error() string
func (*PublicClaimUserRewardBadRequest) GetPayload ¶
func (o *PublicClaimUserRewardBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *PublicClaimUserRewardConflict) Error() string
func (*PublicClaimUserRewardConflict) GetPayload ¶
func (o *PublicClaimUserRewardConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *PublicClaimUserRewardNotFound) Error() string
func (*PublicClaimUserRewardNotFound) GetPayload ¶
func (o *PublicClaimUserRewardNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *PublicClaimUserRewardOK) GetPayload() *seasonpassclientmodels.ClaimableRewards
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 ¶
func (o *PublicClaimUserRewardParams) SetBody(body *seasonpassclientmodels.UserRewardClaim)
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 ¶
func (o *PublicClaimUserRewardParams) WithBody(body *seasonpassclientmodels.UserRewardClaim) *PublicClaimUserRewardParams
WithBody adds the body to the public claim user reward params
func (*PublicClaimUserRewardParams) WithContext ¶
func (o *PublicClaimUserRewardParams) WithContext(ctx context.Context) *PublicClaimUserRewardParams
WithContext adds the context to the public claim user reward params
func (*PublicClaimUserRewardParams) WithHTTPClient ¶
func (o *PublicClaimUserRewardParams) WithHTTPClient(client *http.Client) *PublicClaimUserRewardParams
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 ¶
func (o *PublicClaimUserRewardParams) WithTimeout(timeout time.Duration) *PublicClaimUserRewardParams
WithTimeout adds the timeout to the public claim user reward params
func (*PublicClaimUserRewardParams) WithUserID ¶
func (o *PublicClaimUserRewardParams) WithUserID(userID string) *PublicClaimUserRewardParams
WithUserID adds the userID to the public claim user reward params
func (*PublicClaimUserRewardParams) WriteToRequest ¶
func (o *PublicClaimUserRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *QueryRewardsBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *QueryRewardsNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *QueryRewardsOK) GetPayload() []*seasonpassclientmodels.RewardInfo
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 ¶
func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
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 ¶
func (o *QueryRewardsParams) WithQ(q *string) *QueryRewardsParams
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 (o *UpdateRewardBadRequest) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdateRewardConflict) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdateRewardNotFound) GetPayload() *seasonpassclientmodels.ErrorEntity
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 (o *UpdateRewardOK) GetPayload() *seasonpassclientmodels.RewardInfo
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 ¶
func (o *UpdateRewardParams) SetBody(body *seasonpassclientmodels.RewardUpdate)
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 ¶
func (o *UpdateRewardParams) WithBody(body *seasonpassclientmodels.RewardUpdate) *UpdateRewardParams
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 ¶
func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
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 (o *UpdateRewardUnprocessableEntity) Error() string
func (*UpdateRewardUnprocessableEntity) GetPayload ¶
func (o *UpdateRewardUnprocessableEntity) GetPayload() *seasonpassclientmodels.ValidationErrorEntity
func (*UpdateRewardUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *UpdateRewardUnprocessableEntity) ToJSONString() string
Source Files ¶
- create_reward_parameters.go
- create_reward_responses.go
- delete_reward_parameters.go
- delete_reward_responses.go
- get_reward_parameters.go
- get_reward_responses.go
- public_bulk_claim_user_rewards_parameters.go
- public_bulk_claim_user_rewards_responses.go
- public_claim_user_reward_parameters.go
- public_claim_user_reward_responses.go
- query_rewards_parameters.go
- query_rewards_responses.go
- reward_client.go
- update_reward_parameters.go
- update_reward_responses.go