player_reward

package
v0.77.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminGetUserRewardsCreatedAtConstant     = "createdAt"
	AdminGetUserRewardsCreatedAtAscConstant  = "createdAt:asc"
	AdminGetUserRewardsCreatedAtDescConstant = "createdAt:desc"
	AdminGetUserRewardsUpdatedAtConstant     = "updatedAt"
	AdminGetUserRewardsUpdatedAtAscConstant  = "updatedAt:asc"
	AdminGetUserRewardsUpdatedAtDescConstant = "updatedAt:desc"
)

Get the enum in AdminGetUserRewardsParams

View Source
const (
	AdminGetUserRewardsCLAIMEDConstant   = "CLAIMED"
	AdminGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED"
)

Get the enum in AdminGetUserRewardsParams

View Source
const (
	PublicGetUserRewardsCreatedAtConstant     = "createdAt"
	PublicGetUserRewardsCreatedAtAscConstant  = "createdAt:asc"
	PublicGetUserRewardsCreatedAtDescConstant = "createdAt:desc"
	PublicGetUserRewardsUpdatedAtConstant     = "updatedAt"
	PublicGetUserRewardsUpdatedAtAscConstant  = "updatedAt:asc"
	PublicGetUserRewardsUpdatedAtDescConstant = "updatedAt:desc"
)

Get the enum in PublicGetUserRewardsParams

View Source
const (
	PublicGetUserRewardsCLAIMEDConstant   = "CLAIMED"
	PublicGetUserRewardsUNCLAIMEDConstant = "UNCLAIMED"
)

Get the enum in PublicGetUserRewardsParams

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClaimUserRewardsByGoalCodeBadRequest added in v0.74.0

type AdminClaimUserRewardsByGoalCodeBadRequest struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsByGoalCodeBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeBadRequest added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeBadRequest() *AdminClaimUserRewardsByGoalCodeBadRequest

NewAdminClaimUserRewardsByGoalCodeBadRequest creates a AdminClaimUserRewardsByGoalCodeBadRequest with default headers values

func (*AdminClaimUserRewardsByGoalCodeBadRequest) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeBadRequest) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeBadRequest) ToJSONString added in v0.74.0

type AdminClaimUserRewardsByGoalCodeForbidden added in v0.74.0

type AdminClaimUserRewardsByGoalCodeForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsByGoalCodeForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeForbidden added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeForbidden() *AdminClaimUserRewardsByGoalCodeForbidden

NewAdminClaimUserRewardsByGoalCodeForbidden creates a AdminClaimUserRewardsByGoalCodeForbidden with default headers values

func (*AdminClaimUserRewardsByGoalCodeForbidden) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeForbidden) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeForbidden) ToJSONString added in v0.74.0

type AdminClaimUserRewardsByGoalCodeInternalServerError added in v0.74.0

type AdminClaimUserRewardsByGoalCodeInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUserRewardsByGoalCodeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeInternalServerError added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeInternalServerError() *AdminClaimUserRewardsByGoalCodeInternalServerError

NewAdminClaimUserRewardsByGoalCodeInternalServerError creates a AdminClaimUserRewardsByGoalCodeInternalServerError with default headers values

func (*AdminClaimUserRewardsByGoalCodeInternalServerError) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeInternalServerError) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeInternalServerError) ToJSONString added in v0.74.0

type AdminClaimUserRewardsByGoalCodeNotFound added in v0.74.0

type AdminClaimUserRewardsByGoalCodeNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsByGoalCodeNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeNotFound added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeNotFound() *AdminClaimUserRewardsByGoalCodeNotFound

NewAdminClaimUserRewardsByGoalCodeNotFound creates a AdminClaimUserRewardsByGoalCodeNotFound with default headers values

func (*AdminClaimUserRewardsByGoalCodeNotFound) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeNotFound) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeNotFound) ToJSONString added in v0.74.0

type AdminClaimUserRewardsByGoalCodeOK added in v0.74.0

type AdminClaimUserRewardsByGoalCodeOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

AdminClaimUserRewardsByGoalCodeOK handles this case with default header values.

OK

func NewAdminClaimUserRewardsByGoalCodeOK added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeOK() *AdminClaimUserRewardsByGoalCodeOK

NewAdminClaimUserRewardsByGoalCodeOK creates a AdminClaimUserRewardsByGoalCodeOK with default headers values

func (*AdminClaimUserRewardsByGoalCodeOK) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeOK) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeOK) ToJSONString added in v0.74.0

func (o *AdminClaimUserRewardsByGoalCodeOK) ToJSONString() string

type AdminClaimUserRewardsByGoalCodeParams added in v0.74.0

type AdminClaimUserRewardsByGoalCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsByGoalCodeRequest
	/*ChallengeCode*/
	ChallengeCode string
	/*Namespace
	  namespace of the game

	*/
	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
}

AdminClaimUserRewardsByGoalCodeParams contains all the parameters to send to the API endpoint for the admin claim user rewards by goal code operation typically these are written to a http.Request

func NewAdminClaimUserRewardsByGoalCodeParams added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeParams() *AdminClaimUserRewardsByGoalCodeParams

NewAdminClaimUserRewardsByGoalCodeParams creates a new AdminClaimUserRewardsByGoalCodeParams object with the default values initialized.

func NewAdminClaimUserRewardsByGoalCodeParamsWithContext added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeParamsWithContext(ctx context.Context) *AdminClaimUserRewardsByGoalCodeParams

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

func NewAdminClaimUserRewardsByGoalCodeParamsWithHTTPClient added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeParamsWithHTTPClient(client *http.Client) *AdminClaimUserRewardsByGoalCodeParams

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

func NewAdminClaimUserRewardsByGoalCodeParamsWithTimeout added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeParamsWithTimeout(timeout time.Duration) *AdminClaimUserRewardsByGoalCodeParams

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

func (*AdminClaimUserRewardsByGoalCodeParams) SetAuthInfoWriter added in v0.74.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetBody added in v0.74.0

SetBody adds the body to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetChallengeCode added in v0.74.0

func (o *AdminClaimUserRewardsByGoalCodeParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetContext added in v0.74.0

SetContext adds the context to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetFlightId added in v0.74.0

func (o *AdminClaimUserRewardsByGoalCodeParams) SetFlightId(flightId string)

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

func (*AdminClaimUserRewardsByGoalCodeParams) SetHTTPClient added in v0.74.0

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

SetHTTPClient adds the HTTPClient to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetHTTPClientTransport added in v0.74.0

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

SetHTTPClient adds the HTTPClient Transport to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetNamespace added in v0.74.0

func (o *AdminClaimUserRewardsByGoalCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetTimeout added in v0.74.0

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

SetTimeout adds the timeout to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) SetUserID added in v0.74.0

func (o *AdminClaimUserRewardsByGoalCodeParams) SetUserID(userID string)

SetUserID adds the userId to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithBody added in v0.74.0

WithBody adds the body to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithChallengeCode added in v0.74.0

WithChallengeCode adds the challengeCode to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithContext added in v0.74.0

WithContext adds the context to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithHTTPClient added in v0.74.0

WithHTTPClient adds the HTTPClient to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithNamespace added in v0.74.0

WithNamespace adds the namespace to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithTimeout added in v0.74.0

WithTimeout adds the timeout to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WithUserID added in v0.74.0

WithUserID adds the userID to the admin claim user rewards by goal code params

func (*AdminClaimUserRewardsByGoalCodeParams) WriteToRequest added in v0.74.0

WriteToRequest writes these params to a swagger request

type AdminClaimUserRewardsByGoalCodeReader added in v0.74.0

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

AdminClaimUserRewardsByGoalCodeReader is a Reader for the AdminClaimUserRewardsByGoalCode structure.

func (*AdminClaimUserRewardsByGoalCodeReader) ReadResponse added in v0.74.0

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

ReadResponse reads a server response into the received o.

type AdminClaimUserRewardsByGoalCodeUnauthorized added in v0.74.0

type AdminClaimUserRewardsByGoalCodeUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsByGoalCodeUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeUnauthorized added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeUnauthorized() *AdminClaimUserRewardsByGoalCodeUnauthorized

NewAdminClaimUserRewardsByGoalCodeUnauthorized creates a AdminClaimUserRewardsByGoalCodeUnauthorized with default headers values

func (*AdminClaimUserRewardsByGoalCodeUnauthorized) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeUnauthorized) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeUnauthorized) ToJSONString added in v0.74.0

type AdminClaimUserRewardsByGoalCodeUnprocessableEntity added in v0.74.0

type AdminClaimUserRewardsByGoalCodeUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsByGoalCodeUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsByGoalCodeUnprocessableEntity added in v0.74.0

func NewAdminClaimUserRewardsByGoalCodeUnprocessableEntity() *AdminClaimUserRewardsByGoalCodeUnprocessableEntity

NewAdminClaimUserRewardsByGoalCodeUnprocessableEntity creates a AdminClaimUserRewardsByGoalCodeUnprocessableEntity with default headers values

func (*AdminClaimUserRewardsByGoalCodeUnprocessableEntity) Error added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeUnprocessableEntity) GetPayload added in v0.74.0

func (*AdminClaimUserRewardsByGoalCodeUnprocessableEntity) ToJSONString added in v0.74.0

type AdminClaimUserRewardsForbidden added in v0.71.0

type AdminClaimUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminClaimUserRewardsForbidden added in v0.71.0

func NewAdminClaimUserRewardsForbidden() *AdminClaimUserRewardsForbidden

NewAdminClaimUserRewardsForbidden creates a AdminClaimUserRewardsForbidden with default headers values

func (*AdminClaimUserRewardsForbidden) Error added in v0.71.0

func (*AdminClaimUserRewardsForbidden) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsForbidden) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsForbidden) ToJSONString() string

type AdminClaimUserRewardsInternalServerError added in v0.71.0

type AdminClaimUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsInternalServerError added in v0.71.0

func NewAdminClaimUserRewardsInternalServerError() *AdminClaimUserRewardsInternalServerError

NewAdminClaimUserRewardsInternalServerError creates a AdminClaimUserRewardsInternalServerError with default headers values

func (*AdminClaimUserRewardsInternalServerError) Error added in v0.71.0

func (*AdminClaimUserRewardsInternalServerError) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsInternalServerError) ToJSONString added in v0.71.0

type AdminClaimUserRewardsNotFound added in v0.71.0

type AdminClaimUserRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewAdminClaimUserRewardsNotFound added in v0.71.0

func NewAdminClaimUserRewardsNotFound() *AdminClaimUserRewardsNotFound

NewAdminClaimUserRewardsNotFound creates a AdminClaimUserRewardsNotFound with default headers values

func (*AdminClaimUserRewardsNotFound) Error added in v0.71.0

func (*AdminClaimUserRewardsNotFound) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsNotFound) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsNotFound) ToJSONString() string

type AdminClaimUserRewardsOK added in v0.71.0

type AdminClaimUserRewardsOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

AdminClaimUserRewardsOK handles this case with default header values.

OK

func NewAdminClaimUserRewardsOK added in v0.71.0

func NewAdminClaimUserRewardsOK() *AdminClaimUserRewardsOK

NewAdminClaimUserRewardsOK creates a AdminClaimUserRewardsOK with default headers values

func (*AdminClaimUserRewardsOK) Error added in v0.71.0

func (o *AdminClaimUserRewardsOK) Error() string

func (*AdminClaimUserRewardsOK) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsOK) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsOK) ToJSONString() string

type AdminClaimUserRewardsParams added in v0.71.0

type AdminClaimUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsReq
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  user id

	*/
	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
}

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

func NewAdminClaimUserRewardsParams added in v0.71.0

func NewAdminClaimUserRewardsParams() *AdminClaimUserRewardsParams

NewAdminClaimUserRewardsParams creates a new AdminClaimUserRewardsParams object with the default values initialized.

func NewAdminClaimUserRewardsParamsWithContext added in v0.71.0

func NewAdminClaimUserRewardsParamsWithContext(ctx context.Context) *AdminClaimUserRewardsParams

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

func NewAdminClaimUserRewardsParamsWithHTTPClient added in v0.71.0

func NewAdminClaimUserRewardsParamsWithHTTPClient(client *http.Client) *AdminClaimUserRewardsParams

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

func NewAdminClaimUserRewardsParamsWithTimeout added in v0.71.0

func NewAdminClaimUserRewardsParamsWithTimeout(timeout time.Duration) *AdminClaimUserRewardsParams

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

func (*AdminClaimUserRewardsParams) SetAuthInfoWriter added in v0.71.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetBody added in v0.71.0

SetBody adds the body to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetContext added in v0.71.0

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

SetContext adds the context to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetFlightId added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetFlightId(flightId string)

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

func (*AdminClaimUserRewardsParams) SetHTTPClient added in v0.71.0

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

SetHTTPClient adds the HTTPClient to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetHTTPClientTransport added in v0.71.0

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

SetHTTPClient adds the HTTPClient Transport to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetNamespace added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetTimeout added in v0.71.0

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

SetTimeout adds the timeout to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) SetUserID added in v0.71.0

func (o *AdminClaimUserRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithBody added in v0.71.0

WithBody adds the body to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithContext added in v0.71.0

WithContext adds the context to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithHTTPClient added in v0.71.0

WithHTTPClient adds the HTTPClient to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithNamespace added in v0.71.0

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

WithNamespace adds the namespace to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithTimeout added in v0.71.0

WithTimeout adds the timeout to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WithUserID added in v0.71.0

WithUserID adds the userID to the admin claim user rewards params

func (*AdminClaimUserRewardsParams) WriteToRequest added in v0.71.0

WriteToRequest writes these params to a swagger request

type AdminClaimUserRewardsReader added in v0.71.0

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

AdminClaimUserRewardsReader is a Reader for the AdminClaimUserRewards structure.

func (*AdminClaimUserRewardsReader) ReadResponse added in v0.71.0

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

ReadResponse reads a server response into the received o.

type AdminClaimUserRewardsUnauthorized added in v0.71.0

type AdminClaimUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminClaimUserRewardsUnauthorized added in v0.71.0

func NewAdminClaimUserRewardsUnauthorized() *AdminClaimUserRewardsUnauthorized

NewAdminClaimUserRewardsUnauthorized creates a AdminClaimUserRewardsUnauthorized with default headers values

func (*AdminClaimUserRewardsUnauthorized) Error added in v0.71.0

func (*AdminClaimUserRewardsUnauthorized) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsUnauthorized) ToJSONString added in v0.71.0

func (o *AdminClaimUserRewardsUnauthorized) ToJSONString() string

type AdminClaimUserRewardsUnprocessableEntity added in v0.71.0

type AdminClaimUserRewardsUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUserRewardsUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewAdminClaimUserRewardsUnprocessableEntity added in v0.71.0

func NewAdminClaimUserRewardsUnprocessableEntity() *AdminClaimUserRewardsUnprocessableEntity

NewAdminClaimUserRewardsUnprocessableEntity creates a AdminClaimUserRewardsUnprocessableEntity with default headers values

func (*AdminClaimUserRewardsUnprocessableEntity) Error added in v0.71.0

func (*AdminClaimUserRewardsUnprocessableEntity) GetPayload added in v0.71.0

func (*AdminClaimUserRewardsUnprocessableEntity) ToJSONString added in v0.71.0

type AdminClaimUsersRewardsBadRequest added in v0.71.0

type AdminClaimUsersRewardsBadRequest struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUsersRewardsBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>

func NewAdminClaimUsersRewardsBadRequest added in v0.71.0

func NewAdminClaimUsersRewardsBadRequest() *AdminClaimUsersRewardsBadRequest

NewAdminClaimUsersRewardsBadRequest creates a AdminClaimUsersRewardsBadRequest with default headers values

func (*AdminClaimUsersRewardsBadRequest) Error added in v0.71.0

func (*AdminClaimUsersRewardsBadRequest) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsBadRequest) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsBadRequest) ToJSONString() string

type AdminClaimUsersRewardsForbidden added in v0.71.0

type AdminClaimUsersRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminClaimUsersRewardsForbidden added in v0.71.0

func NewAdminClaimUsersRewardsForbidden() *AdminClaimUsersRewardsForbidden

NewAdminClaimUsersRewardsForbidden creates a AdminClaimUsersRewardsForbidden with default headers values

func (*AdminClaimUsersRewardsForbidden) Error added in v0.71.0

func (*AdminClaimUsersRewardsForbidden) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsForbidden) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsForbidden) ToJSONString() string

type AdminClaimUsersRewardsInternalServerError added in v0.71.0

type AdminClaimUsersRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminClaimUsersRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminClaimUsersRewardsInternalServerError added in v0.71.0

func NewAdminClaimUsersRewardsInternalServerError() *AdminClaimUsersRewardsInternalServerError

NewAdminClaimUsersRewardsInternalServerError creates a AdminClaimUsersRewardsInternalServerError with default headers values

func (*AdminClaimUsersRewardsInternalServerError) Error added in v0.71.0

func (*AdminClaimUsersRewardsInternalServerError) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsInternalServerError) ToJSONString added in v0.71.0

type AdminClaimUsersRewardsNotFound added in v0.71.0

type AdminClaimUsersRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewAdminClaimUsersRewardsNotFound added in v0.71.0

func NewAdminClaimUsersRewardsNotFound() *AdminClaimUsersRewardsNotFound

NewAdminClaimUsersRewardsNotFound creates a AdminClaimUsersRewardsNotFound with default headers values

func (*AdminClaimUsersRewardsNotFound) Error added in v0.71.0

func (*AdminClaimUsersRewardsNotFound) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsNotFound) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsNotFound) ToJSONString() string

type AdminClaimUsersRewardsOK added in v0.71.0

type AdminClaimUsersRewardsOK struct {
	Payload []*challengeclientmodels.ModelClaimUsersRewardsResponse
}

AdminClaimUsersRewardsOK handles this case with default header values.

OK

func NewAdminClaimUsersRewardsOK added in v0.71.0

func NewAdminClaimUsersRewardsOK() *AdminClaimUsersRewardsOK

NewAdminClaimUsersRewardsOK creates a AdminClaimUsersRewardsOK with default headers values

func (*AdminClaimUsersRewardsOK) Error added in v0.71.0

func (o *AdminClaimUsersRewardsOK) Error() string

func (*AdminClaimUsersRewardsOK) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsOK) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsOK) ToJSONString() string

type AdminClaimUsersRewardsParams added in v0.71.0

type AdminClaimUsersRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body []*challengeclientmodels.ModelClaimUsersRewardsRequest
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

AdminClaimUsersRewardsParams contains all the parameters to send to the API endpoint for the admin claim users rewards operation typically these are written to a http.Request

func NewAdminClaimUsersRewardsParams added in v0.71.0

func NewAdminClaimUsersRewardsParams() *AdminClaimUsersRewardsParams

NewAdminClaimUsersRewardsParams creates a new AdminClaimUsersRewardsParams object with the default values initialized.

func NewAdminClaimUsersRewardsParamsWithContext added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithContext(ctx context.Context) *AdminClaimUsersRewardsParams

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

func NewAdminClaimUsersRewardsParamsWithHTTPClient added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithHTTPClient(client *http.Client) *AdminClaimUsersRewardsParams

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

func NewAdminClaimUsersRewardsParamsWithTimeout added in v0.71.0

func NewAdminClaimUsersRewardsParamsWithTimeout(timeout time.Duration) *AdminClaimUsersRewardsParams

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

func (*AdminClaimUsersRewardsParams) SetAuthInfoWriter added in v0.71.0

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

SetAuthInfoWriter adds the authInfoWriter to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetBody added in v0.71.0

SetBody adds the body to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetContext added in v0.71.0

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

SetContext adds the context to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetFlightId added in v0.71.0

func (o *AdminClaimUsersRewardsParams) SetFlightId(flightId string)

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

func (*AdminClaimUsersRewardsParams) SetHTTPClient added in v0.71.0

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

SetHTTPClient adds the HTTPClient to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetHTTPClientTransport added in v0.71.0

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

SetHTTPClient adds the HTTPClient Transport to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetNamespace added in v0.71.0

func (o *AdminClaimUsersRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) SetTimeout added in v0.71.0

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

SetTimeout adds the timeout to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithBody added in v0.71.0

WithBody adds the body to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithContext added in v0.71.0

WithContext adds the context to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithHTTPClient added in v0.71.0

WithHTTPClient adds the HTTPClient to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithNamespace added in v0.71.0

WithNamespace adds the namespace to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WithTimeout added in v0.71.0

WithTimeout adds the timeout to the admin claim users rewards params

func (*AdminClaimUsersRewardsParams) WriteToRequest added in v0.71.0

WriteToRequest writes these params to a swagger request

type AdminClaimUsersRewardsReader added in v0.71.0

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

AdminClaimUsersRewardsReader is a Reader for the AdminClaimUsersRewards structure.

func (*AdminClaimUsersRewardsReader) ReadResponse added in v0.71.0

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

ReadResponse reads a server response into the received o.

type AdminClaimUsersRewardsUnauthorized added in v0.71.0

type AdminClaimUsersRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminClaimUsersRewardsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminClaimUsersRewardsUnauthorized added in v0.71.0

func NewAdminClaimUsersRewardsUnauthorized() *AdminClaimUsersRewardsUnauthorized

NewAdminClaimUsersRewardsUnauthorized creates a AdminClaimUsersRewardsUnauthorized with default headers values

func (*AdminClaimUsersRewardsUnauthorized) Error added in v0.71.0

func (*AdminClaimUsersRewardsUnauthorized) GetPayload added in v0.71.0

func (*AdminClaimUsersRewardsUnauthorized) ToJSONString added in v0.71.0

func (o *AdminClaimUsersRewardsUnauthorized) ToJSONString() string

type AdminGetUserRewardsForbidden

type AdminGetUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetUserRewardsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewAdminGetUserRewardsForbidden

func NewAdminGetUserRewardsForbidden() *AdminGetUserRewardsForbidden

NewAdminGetUserRewardsForbidden creates a AdminGetUserRewardsForbidden with default headers values

func (*AdminGetUserRewardsForbidden) Error

func (*AdminGetUserRewardsForbidden) GetPayload

func (*AdminGetUserRewardsForbidden) ToJSONString

func (o *AdminGetUserRewardsForbidden) ToJSONString() string

type AdminGetUserRewardsInternalServerError

type AdminGetUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

AdminGetUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewAdminGetUserRewardsInternalServerError

func NewAdminGetUserRewardsInternalServerError() *AdminGetUserRewardsInternalServerError

NewAdminGetUserRewardsInternalServerError creates a AdminGetUserRewardsInternalServerError with default headers values

func (*AdminGetUserRewardsInternalServerError) Error

func (*AdminGetUserRewardsInternalServerError) GetPayload

func (*AdminGetUserRewardsInternalServerError) ToJSONString

type AdminGetUserRewardsOK

type AdminGetUserRewardsOK struct {
	Payload *challengeclientmodels.ModelListUserRewardsResponse
}

AdminGetUserRewardsOK handles this case with default header values.

OK

func NewAdminGetUserRewardsOK

func NewAdminGetUserRewardsOK() *AdminGetUserRewardsOK

NewAdminGetUserRewardsOK creates a AdminGetUserRewardsOK with default headers values

func (*AdminGetUserRewardsOK) Error

func (o *AdminGetUserRewardsOK) Error() string

func (*AdminGetUserRewardsOK) GetPayload

func (*AdminGetUserRewardsOK) ToJSONString

func (o *AdminGetUserRewardsOK) ToJSONString() string

type AdminGetUserRewardsParams

type AdminGetUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*UserID
	  user id

	*/
	UserID string
	/*ChallengeCode
	  reward's challenge code

	*/
	ChallengeCode *string
	/*GoalProgressionID
	  reward's goal progression id

	*/
	GoalProgressionID *string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort list by attributes.
				default value: updatedAt:desc.

	*/
	SortBy *string
	/*Status
	  user reward status

	*/
	Status *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
}

AdminGetUserRewardsParams contains all the parameters to send to the API endpoint for the admin get user rewards operation typically these are written to a http.Request

func NewAdminGetUserRewardsParams

func NewAdminGetUserRewardsParams() *AdminGetUserRewardsParams

NewAdminGetUserRewardsParams creates a new AdminGetUserRewardsParams object with the default values initialized.

func NewAdminGetUserRewardsParamsWithContext

func NewAdminGetUserRewardsParamsWithContext(ctx context.Context) *AdminGetUserRewardsParams

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

func NewAdminGetUserRewardsParamsWithHTTPClient

func NewAdminGetUserRewardsParamsWithHTTPClient(client *http.Client) *AdminGetUserRewardsParams

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

func NewAdminGetUserRewardsParamsWithTimeout

func NewAdminGetUserRewardsParamsWithTimeout(timeout time.Duration) *AdminGetUserRewardsParams

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

func (*AdminGetUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetChallengeCode added in v0.76.0

func (o *AdminGetUserRewardsParams) SetChallengeCode(challengeCode *string)

SetChallengeCode adds the challengeCode to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetContext

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

SetContext adds the context to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetFlightId

func (o *AdminGetUserRewardsParams) SetFlightId(flightId string)

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

func (*AdminGetUserRewardsParams) SetGoalProgressionID added in v0.76.0

func (o *AdminGetUserRewardsParams) SetGoalProgressionID(goalProgressionID *string)

SetGoalProgressionID adds the goalProgressionId to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetLimit

func (o *AdminGetUserRewardsParams) SetLimit(limit *int64)

SetLimit adds the limit to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetNamespace

func (o *AdminGetUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetOffset

func (o *AdminGetUserRewardsParams) SetOffset(offset *int64)

SetOffset adds the offset to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetSortBy

func (o *AdminGetUserRewardsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetStatus

func (o *AdminGetUserRewardsParams) SetStatus(status *string)

SetStatus adds the status to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the admin get user rewards params

func (*AdminGetUserRewardsParams) SetUserID

func (o *AdminGetUserRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithChallengeCode added in v0.76.0

func (o *AdminGetUserRewardsParams) WithChallengeCode(challengeCode *string) *AdminGetUserRewardsParams

WithChallengeCode adds the challengeCode to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithContext

WithContext adds the context to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithGoalProgressionID added in v0.76.0

func (o *AdminGetUserRewardsParams) WithGoalProgressionID(goalProgressionID *string) *AdminGetUserRewardsParams

WithGoalProgressionID adds the goalProgressionID to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithLimit

WithLimit adds the limit to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithOffset

WithOffset adds the offset to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithSortBy

WithSortBy adds the sortBy to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithStatus

WithStatus adds the status to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the admin get user rewards params

func (*AdminGetUserRewardsParams) WithUserID

WithUserID adds the userID to the admin get user rewards params

func (*AdminGetUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetUserRewardsReader

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

AdminGetUserRewardsReader is a Reader for the AdminGetUserRewards structure.

func (*AdminGetUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetUserRewardsUnauthorized

type AdminGetUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

AdminGetUserRewardsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewAdminGetUserRewardsUnauthorized

func NewAdminGetUserRewardsUnauthorized() *AdminGetUserRewardsUnauthorized

NewAdminGetUserRewardsUnauthorized creates a AdminGetUserRewardsUnauthorized with default headers values

func (*AdminGetUserRewardsUnauthorized) Error

func (*AdminGetUserRewardsUnauthorized) GetPayload

func (*AdminGetUserRewardsUnauthorized) ToJSONString

func (o *AdminGetUserRewardsUnauthorized) ToJSONString() string

type Client

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

Client for player reward API

func (*Client) AdminClaimUserRewards deprecated added in v0.71.0

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

AdminClaimUserRewards claim rewards of a single user - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUserRewardsByGoalCode deprecated added in v0.74.0

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

AdminClaimUserRewardsByGoalCode claim rewards of a single user by goal code - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUserRewardsByGoalCodeShort added in v0.74.0

func (a *Client) AdminClaimUserRewardsByGoalCodeShort(params *AdminClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsByGoalCodeOK, error)

AdminClaimUserRewardsByGoalCodeShort claim rewards of a single user by goal code - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUserRewardsShort added in v0.71.0

func (a *Client) AdminClaimUserRewardsShort(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, error)

AdminClaimUserRewardsShort claim rewards of a single user - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUsersRewards deprecated added in v0.71.0

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

AdminClaimUsersRewards claim rewards of multiple users - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminClaimUsersRewardsShort added in v0.71.0

func (a *Client) AdminClaimUsersRewardsShort(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, error)

AdminClaimUsersRewardsShort claim rewards of multiple users - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) AdminGetUserRewards deprecated

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

AdminGetUserRewards list user's rewards - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) AdminGetUserRewardsShort

func (a *Client) AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)

AdminGetUserRewardsShort list user's rewards - Required permission: ADMIN:NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) PublicClaimUserRewards deprecated

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

PublicClaimUserRewards claim user's rewards - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicClaimUserRewardsByGoalCode deprecated added in v0.74.0

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

PublicClaimUserRewardsByGoalCode claim user's rewards by goal code - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicClaimUserRewardsByGoalCodeShort added in v0.74.0

func (a *Client) PublicClaimUserRewardsByGoalCodeShort(params *PublicClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsByGoalCodeOK, error)

PublicClaimUserRewardsByGoalCodeShort claim user's rewards by goal code - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicClaimUserRewardsShort

func (a *Client) PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, error)

PublicClaimUserRewardsShort claim user's rewards - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [UPDATE]

func (*Client) PublicGetUserRewards deprecated

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

PublicGetUserRewards list user's rewards - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) PublicGetUserRewardsShort

func (a *Client) PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)

PublicGetUserRewardsShort list user's rewards - Required permission: NAMESPACE:{namespace}:CHALLENGE:REWARD [READ]

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminClaimUsersRewards(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, *AdminClaimUsersRewardsBadRequest, *AdminClaimUsersRewardsUnauthorized, *AdminClaimUsersRewardsForbidden, *AdminClaimUsersRewardsNotFound, *AdminClaimUsersRewardsInternalServerError, error)
	AdminClaimUsersRewardsShort(params *AdminClaimUsersRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUsersRewardsOK, error)
	AdminClaimUserRewardsByGoalCode(params *AdminClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsByGoalCodeOK, *AdminClaimUserRewardsByGoalCodeBadRequest, *AdminClaimUserRewardsByGoalCodeUnauthorized, *AdminClaimUserRewardsByGoalCodeForbidden, *AdminClaimUserRewardsByGoalCodeNotFound, *AdminClaimUserRewardsByGoalCodeUnprocessableEntity, *AdminClaimUserRewardsByGoalCodeInternalServerError, error)
	AdminClaimUserRewardsByGoalCodeShort(params *AdminClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsByGoalCodeOK, error)
	AdminGetUserRewards(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, *AdminGetUserRewardsUnauthorized, *AdminGetUserRewardsForbidden, *AdminGetUserRewardsInternalServerError, error)
	AdminGetUserRewardsShort(params *AdminGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetUserRewardsOK, error)
	AdminClaimUserRewards(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, *AdminClaimUserRewardsUnauthorized, *AdminClaimUserRewardsForbidden, *AdminClaimUserRewardsNotFound, *AdminClaimUserRewardsUnprocessableEntity, *AdminClaimUserRewardsInternalServerError, error)
	AdminClaimUserRewardsShort(params *AdminClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*AdminClaimUserRewardsOK, error)
	PublicClaimUserRewardsByGoalCode(params *PublicClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsByGoalCodeOK, *PublicClaimUserRewardsByGoalCodeBadRequest, *PublicClaimUserRewardsByGoalCodeUnauthorized, *PublicClaimUserRewardsByGoalCodeForbidden, *PublicClaimUserRewardsByGoalCodeNotFound, *PublicClaimUserRewardsByGoalCodeUnprocessableEntity, *PublicClaimUserRewardsByGoalCodeInternalServerError, error)
	PublicClaimUserRewardsByGoalCodeShort(params *PublicClaimUserRewardsByGoalCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsByGoalCodeOK, error)
	PublicGetUserRewards(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, *PublicGetUserRewardsUnauthorized, *PublicGetUserRewardsForbidden, *PublicGetUserRewardsInternalServerError, error)
	PublicGetUserRewardsShort(params *PublicGetUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserRewardsOK, error)
	PublicClaimUserRewards(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, *PublicClaimUserRewardsUnauthorized, *PublicClaimUserRewardsForbidden, *PublicClaimUserRewardsNotFound, *PublicClaimUserRewardsUnprocessableEntity, *PublicClaimUserRewardsInternalServerError, error)
	PublicClaimUserRewardsShort(params *PublicClaimUserRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*PublicClaimUserRewardsOK, 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 player reward API client.

type PublicClaimUserRewardsByGoalCodeBadRequest added in v0.74.0

type PublicClaimUserRewardsByGoalCodeBadRequest struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsByGoalCodeBadRequest handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20018</td><td>bad request: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeBadRequest added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeBadRequest() *PublicClaimUserRewardsByGoalCodeBadRequest

NewPublicClaimUserRewardsByGoalCodeBadRequest creates a PublicClaimUserRewardsByGoalCodeBadRequest with default headers values

func (*PublicClaimUserRewardsByGoalCodeBadRequest) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeBadRequest) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeBadRequest) ToJSONString added in v0.74.0

type PublicClaimUserRewardsByGoalCodeForbidden added in v0.74.0

type PublicClaimUserRewardsByGoalCodeForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsByGoalCodeForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeForbidden added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeForbidden() *PublicClaimUserRewardsByGoalCodeForbidden

NewPublicClaimUserRewardsByGoalCodeForbidden creates a PublicClaimUserRewardsByGoalCodeForbidden with default headers values

func (*PublicClaimUserRewardsByGoalCodeForbidden) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeForbidden) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeForbidden) ToJSONString added in v0.74.0

type PublicClaimUserRewardsByGoalCodeInternalServerError added in v0.74.0

type PublicClaimUserRewardsByGoalCodeInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicClaimUserRewardsByGoalCodeInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeInternalServerError added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeInternalServerError() *PublicClaimUserRewardsByGoalCodeInternalServerError

NewPublicClaimUserRewardsByGoalCodeInternalServerError creates a PublicClaimUserRewardsByGoalCodeInternalServerError with default headers values

func (*PublicClaimUserRewardsByGoalCodeInternalServerError) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeInternalServerError) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeInternalServerError) ToJSONString added in v0.74.0

type PublicClaimUserRewardsByGoalCodeNotFound added in v0.74.0

type PublicClaimUserRewardsByGoalCodeNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsByGoalCodeNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeNotFound added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeNotFound() *PublicClaimUserRewardsByGoalCodeNotFound

NewPublicClaimUserRewardsByGoalCodeNotFound creates a PublicClaimUserRewardsByGoalCodeNotFound with default headers values

func (*PublicClaimUserRewardsByGoalCodeNotFound) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeNotFound) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeNotFound) ToJSONString added in v0.74.0

type PublicClaimUserRewardsByGoalCodeOK added in v0.74.0

type PublicClaimUserRewardsByGoalCodeOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

PublicClaimUserRewardsByGoalCodeOK handles this case with default header values.

OK

func NewPublicClaimUserRewardsByGoalCodeOK added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeOK() *PublicClaimUserRewardsByGoalCodeOK

NewPublicClaimUserRewardsByGoalCodeOK creates a PublicClaimUserRewardsByGoalCodeOK with default headers values

func (*PublicClaimUserRewardsByGoalCodeOK) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeOK) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeOK) ToJSONString added in v0.74.0

func (o *PublicClaimUserRewardsByGoalCodeOK) ToJSONString() string

type PublicClaimUserRewardsByGoalCodeParams added in v0.74.0

type PublicClaimUserRewardsByGoalCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsByGoalCodeRequest
	/*ChallengeCode*/
	ChallengeCode string
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

PublicClaimUserRewardsByGoalCodeParams contains all the parameters to send to the API endpoint for the public claim user rewards by goal code operation typically these are written to a http.Request

func NewPublicClaimUserRewardsByGoalCodeParams added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeParams() *PublicClaimUserRewardsByGoalCodeParams

NewPublicClaimUserRewardsByGoalCodeParams creates a new PublicClaimUserRewardsByGoalCodeParams object with the default values initialized.

func NewPublicClaimUserRewardsByGoalCodeParamsWithContext added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeParamsWithContext(ctx context.Context) *PublicClaimUserRewardsByGoalCodeParams

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

func NewPublicClaimUserRewardsByGoalCodeParamsWithHTTPClient added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardsByGoalCodeParams

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

func NewPublicClaimUserRewardsByGoalCodeParamsWithTimeout added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardsByGoalCodeParams

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

func (*PublicClaimUserRewardsByGoalCodeParams) SetAuthInfoWriter added in v0.74.0

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

SetAuthInfoWriter adds the authInfoWriter to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetBody added in v0.74.0

SetBody adds the body to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetChallengeCode added in v0.74.0

func (o *PublicClaimUserRewardsByGoalCodeParams) SetChallengeCode(challengeCode string)

SetChallengeCode adds the challengeCode to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetContext added in v0.74.0

SetContext adds the context to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetFlightId added in v0.74.0

func (o *PublicClaimUserRewardsByGoalCodeParams) SetFlightId(flightId string)

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

func (*PublicClaimUserRewardsByGoalCodeParams) SetHTTPClient added in v0.74.0

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

SetHTTPClient adds the HTTPClient to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetHTTPClientTransport added in v0.74.0

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

SetHTTPClient adds the HTTPClient Transport to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetNamespace added in v0.74.0

func (o *PublicClaimUserRewardsByGoalCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) SetTimeout added in v0.74.0

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

SetTimeout adds the timeout to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithBody added in v0.74.0

WithBody adds the body to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithChallengeCode added in v0.74.0

WithChallengeCode adds the challengeCode to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithContext added in v0.74.0

WithContext adds the context to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithHTTPClient added in v0.74.0

WithHTTPClient adds the HTTPClient to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithNamespace added in v0.74.0

WithNamespace adds the namespace to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WithTimeout added in v0.74.0

WithTimeout adds the timeout to the public claim user rewards by goal code params

func (*PublicClaimUserRewardsByGoalCodeParams) WriteToRequest added in v0.74.0

WriteToRequest writes these params to a swagger request

type PublicClaimUserRewardsByGoalCodeReader added in v0.74.0

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

PublicClaimUserRewardsByGoalCodeReader is a Reader for the PublicClaimUserRewardsByGoalCode structure.

func (*PublicClaimUserRewardsByGoalCodeReader) ReadResponse added in v0.74.0

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

ReadResponse reads a server response into the received o.

type PublicClaimUserRewardsByGoalCodeUnauthorized added in v0.74.0

type PublicClaimUserRewardsByGoalCodeUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsByGoalCodeUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeUnauthorized added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeUnauthorized() *PublicClaimUserRewardsByGoalCodeUnauthorized

NewPublicClaimUserRewardsByGoalCodeUnauthorized creates a PublicClaimUserRewardsByGoalCodeUnauthorized with default headers values

func (*PublicClaimUserRewardsByGoalCodeUnauthorized) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeUnauthorized) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeUnauthorized) ToJSONString added in v0.74.0

type PublicClaimUserRewardsByGoalCodeUnprocessableEntity added in v0.74.0

type PublicClaimUserRewardsByGoalCodeUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsByGoalCodeUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsByGoalCodeUnprocessableEntity added in v0.74.0

func NewPublicClaimUserRewardsByGoalCodeUnprocessableEntity() *PublicClaimUserRewardsByGoalCodeUnprocessableEntity

NewPublicClaimUserRewardsByGoalCodeUnprocessableEntity creates a PublicClaimUserRewardsByGoalCodeUnprocessableEntity with default headers values

func (*PublicClaimUserRewardsByGoalCodeUnprocessableEntity) Error added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeUnprocessableEntity) GetPayload added in v0.74.0

func (*PublicClaimUserRewardsByGoalCodeUnprocessableEntity) ToJSONString added in v0.74.0

type PublicClaimUserRewardsForbidden

type PublicClaimUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewPublicClaimUserRewardsForbidden

func NewPublicClaimUserRewardsForbidden() *PublicClaimUserRewardsForbidden

NewPublicClaimUserRewardsForbidden creates a PublicClaimUserRewardsForbidden with default headers values

func (*PublicClaimUserRewardsForbidden) Error

func (*PublicClaimUserRewardsForbidden) GetPayload

func (*PublicClaimUserRewardsForbidden) ToJSONString

func (o *PublicClaimUserRewardsForbidden) ToJSONString() string

type PublicClaimUserRewardsInternalServerError

type PublicClaimUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicClaimUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsInternalServerError

func NewPublicClaimUserRewardsInternalServerError() *PublicClaimUserRewardsInternalServerError

NewPublicClaimUserRewardsInternalServerError creates a PublicClaimUserRewardsInternalServerError with default headers values

func (*PublicClaimUserRewardsInternalServerError) Error

func (*PublicClaimUserRewardsInternalServerError) GetPayload

func (*PublicClaimUserRewardsInternalServerError) ToJSONString

type PublicClaimUserRewardsNotFound

type PublicClaimUserRewardsNotFound struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsNotFound handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20029</td><td>not found</td></tr></table>

func NewPublicClaimUserRewardsNotFound

func NewPublicClaimUserRewardsNotFound() *PublicClaimUserRewardsNotFound

NewPublicClaimUserRewardsNotFound creates a PublicClaimUserRewardsNotFound with default headers values

func (*PublicClaimUserRewardsNotFound) Error

func (*PublicClaimUserRewardsNotFound) GetPayload

func (*PublicClaimUserRewardsNotFound) ToJSONString

func (o *PublicClaimUserRewardsNotFound) ToJSONString() string

type PublicClaimUserRewardsOK

type PublicClaimUserRewardsOK struct {
	Payload []*challengeclientmodels.ModelUserReward
}

PublicClaimUserRewardsOK handles this case with default header values.

OK

func NewPublicClaimUserRewardsOK

func NewPublicClaimUserRewardsOK() *PublicClaimUserRewardsOK

NewPublicClaimUserRewardsOK creates a PublicClaimUserRewardsOK with default headers values

func (*PublicClaimUserRewardsOK) Error

func (o *PublicClaimUserRewardsOK) Error() string

func (*PublicClaimUserRewardsOK) GetPayload

func (*PublicClaimUserRewardsOK) ToJSONString

func (o *PublicClaimUserRewardsOK) ToJSONString() string

type PublicClaimUserRewardsParams

type PublicClaimUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *challengeclientmodels.ModelClaimUserRewardsReq
	/*Namespace
	  namespace of the game

	*/
	Namespace string

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

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

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

func NewPublicClaimUserRewardsParams

func NewPublicClaimUserRewardsParams() *PublicClaimUserRewardsParams

NewPublicClaimUserRewardsParams creates a new PublicClaimUserRewardsParams object with the default values initialized.

func NewPublicClaimUserRewardsParamsWithContext

func NewPublicClaimUserRewardsParamsWithContext(ctx context.Context) *PublicClaimUserRewardsParams

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

func NewPublicClaimUserRewardsParamsWithHTTPClient

func NewPublicClaimUserRewardsParamsWithHTTPClient(client *http.Client) *PublicClaimUserRewardsParams

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

func NewPublicClaimUserRewardsParamsWithTimeout

func NewPublicClaimUserRewardsParamsWithTimeout(timeout time.Duration) *PublicClaimUserRewardsParams

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

func (*PublicClaimUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetBody

SetBody adds the body to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetContext

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

SetContext adds the context to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetFlightId

func (o *PublicClaimUserRewardsParams) SetFlightId(flightId string)

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

func (*PublicClaimUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetHTTPClientTransport

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

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

func (*PublicClaimUserRewardsParams) SetNamespace

func (o *PublicClaimUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public claim user rewards params

func (*PublicClaimUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithBody

WithBody adds the body to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithContext

WithContext adds the context to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithNamespace

WithNamespace adds the namespace to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the public claim user rewards params

func (*PublicClaimUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicClaimUserRewardsReader

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

PublicClaimUserRewardsReader is a Reader for the PublicClaimUserRewards structure.

func (*PublicClaimUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicClaimUserRewardsUnauthorized

type PublicClaimUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewPublicClaimUserRewardsUnauthorized

func NewPublicClaimUserRewardsUnauthorized() *PublicClaimUserRewardsUnauthorized

NewPublicClaimUserRewardsUnauthorized creates a PublicClaimUserRewardsUnauthorized with default headers values

func (*PublicClaimUserRewardsUnauthorized) Error

func (*PublicClaimUserRewardsUnauthorized) GetPayload

func (*PublicClaimUserRewardsUnauthorized) ToJSONString

func (o *PublicClaimUserRewardsUnauthorized) ToJSONString() string

type PublicClaimUserRewardsUnprocessableEntity added in v0.71.0

type PublicClaimUserRewardsUnprocessableEntity struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicClaimUserRewardsUnprocessableEntity handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>99004</td><td>unprocessable entity: {{message}}</td></tr></table>

func NewPublicClaimUserRewardsUnprocessableEntity added in v0.71.0

func NewPublicClaimUserRewardsUnprocessableEntity() *PublicClaimUserRewardsUnprocessableEntity

NewPublicClaimUserRewardsUnprocessableEntity creates a PublicClaimUserRewardsUnprocessableEntity with default headers values

func (*PublicClaimUserRewardsUnprocessableEntity) Error added in v0.71.0

func (*PublicClaimUserRewardsUnprocessableEntity) GetPayload added in v0.71.0

func (*PublicClaimUserRewardsUnprocessableEntity) ToJSONString added in v0.71.0

type PublicGetUserRewardsForbidden

type PublicGetUserRewardsForbidden struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetUserRewardsForbidden handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20013</td><td>insufficient permission</td></tr></table>

func NewPublicGetUserRewardsForbidden

func NewPublicGetUserRewardsForbidden() *PublicGetUserRewardsForbidden

NewPublicGetUserRewardsForbidden creates a PublicGetUserRewardsForbidden with default headers values

func (*PublicGetUserRewardsForbidden) Error

func (*PublicGetUserRewardsForbidden) GetPayload

func (*PublicGetUserRewardsForbidden) ToJSONString

func (o *PublicGetUserRewardsForbidden) ToJSONString() string

type PublicGetUserRewardsInternalServerError

type PublicGetUserRewardsInternalServerError struct {
	Payload *challengeclientmodels.ResponseError
}

PublicGetUserRewardsInternalServerError handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20000</td><td>internal server error: {{message}}</td></tr></table>

func NewPublicGetUserRewardsInternalServerError

func NewPublicGetUserRewardsInternalServerError() *PublicGetUserRewardsInternalServerError

NewPublicGetUserRewardsInternalServerError creates a PublicGetUserRewardsInternalServerError with default headers values

func (*PublicGetUserRewardsInternalServerError) Error

func (*PublicGetUserRewardsInternalServerError) GetPayload

func (*PublicGetUserRewardsInternalServerError) ToJSONString

type PublicGetUserRewardsOK

type PublicGetUserRewardsOK struct {
	Payload *challengeclientmodels.ModelListUserRewardsResponse
}

PublicGetUserRewardsOK handles this case with default header values.

OK

func NewPublicGetUserRewardsOK

func NewPublicGetUserRewardsOK() *PublicGetUserRewardsOK

NewPublicGetUserRewardsOK creates a PublicGetUserRewardsOK with default headers values

func (*PublicGetUserRewardsOK) Error

func (o *PublicGetUserRewardsOK) Error() string

func (*PublicGetUserRewardsOK) GetPayload

func (*PublicGetUserRewardsOK) ToJSONString

func (o *PublicGetUserRewardsOK) ToJSONString() string

type PublicGetUserRewardsParams

type PublicGetUserRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace of the game

	*/
	Namespace string
	/*ChallengeCode
	  reward's challenge code

	*/
	ChallengeCode *string
	/*GoalProgressionID
	  reward's goal progression id

	*/
	GoalProgressionID *string
	/*Limit
	  limit the amount of data retrieved

	*/
	Limit *int64
	/*Offset
	  offset

	*/
	Offset *int64
	/*SortBy
	    sort list by attributes.
				default value: updatedAt:desc.

	*/
	SortBy *string
	/*Status
	  user reward status

	*/
	Status *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
}

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

func NewPublicGetUserRewardsParams

func NewPublicGetUserRewardsParams() *PublicGetUserRewardsParams

NewPublicGetUserRewardsParams creates a new PublicGetUserRewardsParams object with the default values initialized.

func NewPublicGetUserRewardsParamsWithContext

func NewPublicGetUserRewardsParamsWithContext(ctx context.Context) *PublicGetUserRewardsParams

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

func NewPublicGetUserRewardsParamsWithHTTPClient

func NewPublicGetUserRewardsParamsWithHTTPClient(client *http.Client) *PublicGetUserRewardsParams

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

func NewPublicGetUserRewardsParamsWithTimeout

func NewPublicGetUserRewardsParamsWithTimeout(timeout time.Duration) *PublicGetUserRewardsParams

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

func (*PublicGetUserRewardsParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public get user rewards params

func (*PublicGetUserRewardsParams) SetChallengeCode added in v0.76.0

func (o *PublicGetUserRewardsParams) SetChallengeCode(challengeCode *string)

SetChallengeCode adds the challengeCode to the public get user rewards params

func (*PublicGetUserRewardsParams) SetContext

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

SetContext adds the context to the public get user rewards params

func (*PublicGetUserRewardsParams) SetFlightId

func (o *PublicGetUserRewardsParams) SetFlightId(flightId string)

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

func (*PublicGetUserRewardsParams) SetGoalProgressionID added in v0.76.0

func (o *PublicGetUserRewardsParams) SetGoalProgressionID(goalProgressionID *string)

SetGoalProgressionID adds the goalProgressionId to the public get user rewards params

func (*PublicGetUserRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get user rewards params

func (*PublicGetUserRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public get user rewards params

func (*PublicGetUserRewardsParams) SetLimit

func (o *PublicGetUserRewardsParams) SetLimit(limit *int64)

SetLimit adds the limit to the public get user rewards params

func (*PublicGetUserRewardsParams) SetNamespace

func (o *PublicGetUserRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user rewards params

func (*PublicGetUserRewardsParams) SetOffset

func (o *PublicGetUserRewardsParams) SetOffset(offset *int64)

SetOffset adds the offset to the public get user rewards params

func (*PublicGetUserRewardsParams) SetSortBy

func (o *PublicGetUserRewardsParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the public get user rewards params

func (*PublicGetUserRewardsParams) SetStatus

func (o *PublicGetUserRewardsParams) SetStatus(status *string)

SetStatus adds the status to the public get user rewards params

func (*PublicGetUserRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the public get user rewards params

func (*PublicGetUserRewardsParams) WithChallengeCode added in v0.76.0

func (o *PublicGetUserRewardsParams) WithChallengeCode(challengeCode *string) *PublicGetUserRewardsParams

WithChallengeCode adds the challengeCode to the public get user rewards params

func (*PublicGetUserRewardsParams) WithContext

WithContext adds the context to the public get user rewards params

func (*PublicGetUserRewardsParams) WithGoalProgressionID added in v0.76.0

func (o *PublicGetUserRewardsParams) WithGoalProgressionID(goalProgressionID *string) *PublicGetUserRewardsParams

WithGoalProgressionID adds the goalProgressionID to the public get user rewards params

func (*PublicGetUserRewardsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get user rewards params

func (*PublicGetUserRewardsParams) WithLimit

WithLimit adds the limit to the public get user rewards params

func (*PublicGetUserRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the public get user rewards params

func (*PublicGetUserRewardsParams) WithOffset

WithOffset adds the offset to the public get user rewards params

func (*PublicGetUserRewardsParams) WithSortBy

WithSortBy adds the sortBy to the public get user rewards params

func (*PublicGetUserRewardsParams) WithStatus

WithStatus adds the status to the public get user rewards params

func (*PublicGetUserRewardsParams) WithTimeout

WithTimeout adds the timeout to the public get user rewards params

func (*PublicGetUserRewardsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserRewardsReader

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

PublicGetUserRewardsReader is a Reader for the PublicGetUserRewards structure.

func (*PublicGetUserRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetUserRewardsUnauthorized

type PublicGetUserRewardsUnauthorized struct {
	Payload *challengeclientmodels.IamErrorResponse
}

PublicGetUserRewardsUnauthorized handles this case with default header values.

<table><tr><td>errorCode</td><td>errorMessage</td></tr><tr><td>20001</td><td>unauthorized access</td></tr></table>

func NewPublicGetUserRewardsUnauthorized

func NewPublicGetUserRewardsUnauthorized() *PublicGetUserRewardsUnauthorized

NewPublicGetUserRewardsUnauthorized creates a PublicGetUserRewardsUnauthorized with default headers values

func (*PublicGetUserRewardsUnauthorized) Error

func (*PublicGetUserRewardsUnauthorized) GetPayload

func (*PublicGetUserRewardsUnauthorized) ToJSONString

func (o *PublicGetUserRewardsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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