reward

package
v0.59.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: MIT Imports: 16 Imported by: 3 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	QueryRewards1NamespaceConstant      = "namespace"
	QueryRewards1NamespaceAscConstant   = "namespace:asc"
	QueryRewards1NamespaceDescConstant  = "namespace:desc"
	QueryRewards1RewardCodeConstant     = "rewardCode"
	QueryRewards1RewardCodeAscConstant  = "rewardCode:asc"
	QueryRewards1RewardCodeDescConstant = "rewardCode:desc"
)

Get the enum in QueryRewards1Params

View Source
const (
	QueryRewardsNamespaceConstant      = "namespace"
	QueryRewardsNamespaceAscConstant   = "namespace:asc"
	QueryRewardsNamespaceDescConstant  = "namespace:desc"
	QueryRewardsRewardCodeConstant     = "rewardCode"
	QueryRewardsRewardCodeAscConstant  = "rewardCode:asc"
	QueryRewardsRewardCodeDescConstant = "rewardCode:desc"
)

Get the enum in QueryRewardsParams

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckEventConditionNotFound added in v0.8.0

type CheckEventConditionNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CheckEventConditionNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCheckEventConditionNotFound added in v0.8.0

func NewCheckEventConditionNotFound() *CheckEventConditionNotFound

NewCheckEventConditionNotFound creates a CheckEventConditionNotFound with default headers values

func (*CheckEventConditionNotFound) Error added in v0.8.0

func (*CheckEventConditionNotFound) GetPayload added in v0.8.0

func (*CheckEventConditionNotFound) ToJSONString added in v0.25.0

func (o *CheckEventConditionNotFound) ToJSONString() string

type CheckEventConditionOK added in v0.8.0

type CheckEventConditionOK struct {
	Payload *platformclientmodels.ConditionMatchResult
}

CheckEventConditionOK handles this case with default header values.

successful operation

func NewCheckEventConditionOK added in v0.8.0

func NewCheckEventConditionOK() *CheckEventConditionOK

NewCheckEventConditionOK creates a CheckEventConditionOK with default headers values

func (*CheckEventConditionOK) Error added in v0.8.0

func (o *CheckEventConditionOK) Error() string

func (*CheckEventConditionOK) GetPayload added in v0.8.0

func (*CheckEventConditionOK) ToJSONString added in v0.25.0

func (o *CheckEventConditionOK) ToJSONString() string

type CheckEventConditionParams added in v0.8.0

type CheckEventConditionParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.EventPayload
	/*Namespace*/
	Namespace string
	/*RewardID*/
	RewardID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

CheckEventConditionParams contains all the parameters to send to the API endpoint for the check event condition operation typically these are written to a http.Request

func NewCheckEventConditionParams added in v0.8.0

func NewCheckEventConditionParams() *CheckEventConditionParams

NewCheckEventConditionParams creates a new CheckEventConditionParams object with the default values initialized.

func NewCheckEventConditionParamsWithContext added in v0.8.0

func NewCheckEventConditionParamsWithContext(ctx context.Context) *CheckEventConditionParams

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

func NewCheckEventConditionParamsWithHTTPClient added in v0.8.0

func NewCheckEventConditionParamsWithHTTPClient(client *http.Client) *CheckEventConditionParams

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

func NewCheckEventConditionParamsWithTimeout added in v0.8.0

func NewCheckEventConditionParamsWithTimeout(timeout time.Duration) *CheckEventConditionParams

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

func (*CheckEventConditionParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the check event condition params

func (*CheckEventConditionParams) SetBody added in v0.8.0

SetBody adds the body to the check event condition params

func (*CheckEventConditionParams) SetContext added in v0.8.0

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

SetContext adds the context to the check event condition params

func (*CheckEventConditionParams) SetHTTPClient added in v0.8.0

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

SetHTTPClient adds the HTTPClient to the check event condition params

func (*CheckEventConditionParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the check event condition params

func (*CheckEventConditionParams) SetNamespace added in v0.8.0

func (o *CheckEventConditionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the check event condition params

func (*CheckEventConditionParams) SetRewardID added in v0.8.0

func (o *CheckEventConditionParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the check event condition params

func (*CheckEventConditionParams) SetTimeout added in v0.8.0

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

SetTimeout adds the timeout to the check event condition params

func (*CheckEventConditionParams) WithBody added in v0.8.0

WithBody adds the body to the check event condition params

func (*CheckEventConditionParams) WithContext added in v0.8.0

WithContext adds the context to the check event condition params

func (*CheckEventConditionParams) WithHTTPClient added in v0.8.0

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

WithHTTPClient adds the HTTPClient to the check event condition params

func (*CheckEventConditionParams) WithNamespace added in v0.8.0

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

WithNamespace adds the namespace to the check event condition params

func (*CheckEventConditionParams) WithRewardID added in v0.8.0

func (o *CheckEventConditionParams) WithRewardID(rewardID string) *CheckEventConditionParams

WithRewardID adds the rewardID to the check event condition params

func (*CheckEventConditionParams) WithTimeout added in v0.8.0

WithTimeout adds the timeout to the check event condition params

func (*CheckEventConditionParams) WriteToRequest added in v0.8.0

WriteToRequest writes these params to a swagger request

type CheckEventConditionReader added in v0.8.0

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

CheckEventConditionReader is a Reader for the CheckEventCondition structure.

func (*CheckEventConditionReader) ReadResponse added in v0.8.0

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

ReadResponse reads a server response into the received o.

type Client

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

Client for reward API

func (*Client) CheckEventCondition deprecated added in v0.8.0

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

CheckEventCondition check if event payload match reward condition

[TEST FACILITY ONLY] Forbidden in live environment. Other detail info:

 * Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)
 *  Returns : match result

func (*Client) CheckEventConditionShort added in v0.8.0

func (a *Client) CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error)

CheckEventConditionShort check if event payload match reward condition

[TEST FACILITY ONLY] Forbidden in live environment. Other detail info:

 * Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)
 *  Returns : match result

func (*Client) CreateReward deprecated

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

CreateReward create a reward This API is used to create a reward. Other detail info:

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

func (*Client) CreateRewardShort added in v0.8.0

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

CreateRewardShort create a reward This API is used to create a reward. Other detail info:

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

func (*Client) DeleteReward deprecated

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

DeleteReward delete a reward This API is used to delete a reward by reward Id.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=8 (DELETE)
  • Returns : the deleted reward data

func (*Client) DeleteRewardConditionRecord deprecated added in v0.25.0

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

DeleteRewardConditionRecord delete a reward condition record

[TEST FACILITY ONLY] Forbidden in live environment. This API is used to delete a reward condition record by reward Id and condition Name (optional).

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=8 (DELETE)
  • Returns : 204 No Content

func (*Client) DeleteRewardConditionRecordShort added in v0.25.0

func (a *Client) DeleteRewardConditionRecordShort(params *DeleteRewardConditionRecordParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardConditionRecordNoContent, error)

DeleteRewardConditionRecordShort delete a reward condition record [TEST FACILITY ONLY] Forbidden in live environment. This API is used to delete a reward condition record by reward Id and condition Name (optional).

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=8 (DELETE)
  • Returns : 204 No Content

func (*Client) DeleteRewardShort added in v0.8.0

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

DeleteRewardShort delete a reward This API is used to delete a reward by reward Id.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=8 (DELETE)
  • Returns : the deleted reward data

func (*Client) ExportRewards deprecated

func (a *Client) ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*ExportRewardsOK, error)

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

ExportRewards export all reward configurations Export reward configurations for a given namespace into file. At current, only JSON file is supported.

Other detail info:

  • *Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)

func (*Client) ExportRewardsShort added in v0.8.0

func (a *Client) ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*ExportRewardsOK, error)

ExportRewardsShort export all reward configurations Export reward configurations for a given namespace into file. At current, only JSON file is supported.

Other detail info:

  • *Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=2 (READ)

func (*Client) GetReward deprecated

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

GetReward get a reward This API is used to get reward by reward Id. Other detail info:

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

func (*Client) GetReward1 deprecated

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

GetReward1 get a reward This API is used to get reward by reward Id. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)
  • Returns : reward instance

func (*Client) GetReward1Short added in v0.8.0

func (a *Client) GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, error)

GetReward1Short get a reward This API is used to get reward by reward Id. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)
  • Returns : reward instance

func (*Client) GetRewardByCode deprecated added in v0.7.0

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

GetRewardByCode get a reward by code This API is used to get reward by reward code. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)
  • Returns : reward instance

func (*Client) GetRewardByCodeShort added in v0.8.0

func (a *Client) GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error)

GetRewardByCodeShort get a reward by code This API is used to get reward by reward code. Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:REWARD", action=2 (READ)
  • Returns : reward instance

func (*Client) GetRewardShort added in v0.8.0

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

GetRewardShort get a reward This API is used to get reward by reward Id. Other detail info:

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

func (*Client) ImportRewards deprecated

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

ImportRewards import reward configurations Import reward configurations for a given namespace from file. At current, only JSON file is supported.

Other detail info:

  • *Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=1 (CREATE)

func (*Client) ImportRewardsShort added in v0.8.0

func (a *Client) ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error)

ImportRewardsShort import reward configurations Import reward configurations for a given namespace from file. At current, only JSON file is supported.

Other detail info:

  • *Required permission*: resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=1 (CREATE)

func (*Client) QueryRewards deprecated

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

QueryRewards query rewards by criteria This API is used to query rewards by criteria.

Other detail info:

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

func (*Client) QueryRewards1 deprecated

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

QueryRewards1 query rewards by criteria This API is used to query rewards by criteria.

Other detail info:

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

func (*Client) QueryRewards1Short added in v0.8.0

func (a *Client) QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error)

QueryRewards1Short query rewards by criteria This API is used to query rewards by criteria.

Other detail info:

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

func (*Client) QueryRewardsShort added in v0.8.0

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

QueryRewardsShort query rewards by criteria This API is used to query rewards by criteria.

Other detail info:

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

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateReward deprecated

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

UpdateReward update a reward This API is used to update a reward. Other detail info:

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

func (*Client) UpdateRewardShort added in v0.8.0

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

UpdateRewardShort update a reward This API is used to update a reward. Other detail info:

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

type ClientService

type ClientService interface {
	CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, *CreateRewardBadRequest, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error)
	CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardOK, error)
	QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error)
	QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
	ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*ExportRewardsOK, error)
	ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*ExportRewardsOK, error)
	ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, *ImportRewardsConflict, error)
	ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error)
	GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error)
	GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
	UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, *UpdateRewardConflict, error)
	UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
	DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error)
	DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, error)
	CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error)
	CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error)
	DeleteRewardConditionRecord(params *DeleteRewardConditionRecordParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardConditionRecordNoContent, error)
	DeleteRewardConditionRecordShort(params *DeleteRewardConditionRecordParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardConditionRecordNoContent, error)
	GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error)
	GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error)
	QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error)
	QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error)
	GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error)
	GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, 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 added in v0.44.0

type CreateRewardBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34023</td><td>Reward Item [{itemId}] with item type [{itemType}] is not supported for duration or endDate</td></tr></table>

func NewCreateRewardBadRequest added in v0.44.0

func NewCreateRewardBadRequest() *CreateRewardBadRequest

NewCreateRewardBadRequest creates a CreateRewardBadRequest with default headers values

func (*CreateRewardBadRequest) Error added in v0.44.0

func (o *CreateRewardBadRequest) Error() string

func (*CreateRewardBadRequest) GetPayload added in v0.44.0

func (*CreateRewardBadRequest) ToJSONString added in v0.44.0

func (o *CreateRewardBadRequest) ToJSONString() string

type CreateRewardConflict

type CreateRewardConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34071</td><td>Reward with code [{rewardCode}] already exists in namespace [{namespace}]</td></tr><tr><td>34072</td><td>Duplicate reward condition [{rewardConditionName}] found in reward [{rewardCode}]</td></tr><tr><td>34074</td><td>Reward Item [{itemId}] duration and end date can’t be set at the same time</td></tr></table>

func NewCreateRewardConflict

func NewCreateRewardConflict() *CreateRewardConflict

NewCreateRewardConflict creates a CreateRewardConflict with default headers values

func (*CreateRewardConflict) Error

func (o *CreateRewardConflict) Error() string

func (*CreateRewardConflict) GetPayload

func (*CreateRewardConflict) ToJSONString added in v0.25.0

func (o *CreateRewardConflict) ToJSONString() string

type CreateRewardNotFound

type CreateRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34042</td><td>Reward item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreateRewardNotFound

func NewCreateRewardNotFound() *CreateRewardNotFound

NewCreateRewardNotFound creates a CreateRewardNotFound with default headers values

func (*CreateRewardNotFound) Error

func (o *CreateRewardNotFound) Error() string

func (*CreateRewardNotFound) GetPayload

func (*CreateRewardNotFound) ToJSONString added in v0.25.0

func (o *CreateRewardNotFound) ToJSONString() string

type CreateRewardOK

type CreateRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

CreateRewardOK handles this case with default header values.

successful operation

func NewCreateRewardOK

func NewCreateRewardOK() *CreateRewardOK

NewCreateRewardOK creates a CreateRewardOK with default headers values

func (*CreateRewardOK) Error

func (o *CreateRewardOK) Error() string

func (*CreateRewardOK) GetPayload

func (*CreateRewardOK) ToJSONString added in v0.25.0

func (o *CreateRewardOK) ToJSONString() string

type CreateRewardParams

type CreateRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.RewardCreate
	/*Namespace*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewCreateRewardParams

func NewCreateRewardParams() *CreateRewardParams

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

func NewCreateRewardParamsWithContext

func NewCreateRewardParamsWithContext(ctx context.Context) *CreateRewardParams

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

func NewCreateRewardParamsWithHTTPClient

func NewCreateRewardParamsWithHTTPClient(client *http.Client) *CreateRewardParams

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

func NewCreateRewardParamsWithTimeout

func NewCreateRewardParamsWithTimeout(timeout time.Duration) *CreateRewardParams

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

func (*CreateRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the create reward params

func (*CreateRewardParams) SetBody

SetBody adds the body to the create reward params

func (*CreateRewardParams) SetContext

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

SetContext adds the context to the create reward params

func (*CreateRewardParams) 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) SetTimeout

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

SetTimeout adds the timeout to the create reward params

func (*CreateRewardParams) WithBody

WithBody adds the body to the create reward params

func (*CreateRewardParams) WithContext

WithContext adds the context to the create reward params

func (*CreateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the create reward params

func (*CreateRewardParams) 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 *platformclientmodels.ValidationErrorEntity
}

CreateRewardUnprocessableEntity handles this case with default header values.

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

func NewCreateRewardUnprocessableEntity

func NewCreateRewardUnprocessableEntity() *CreateRewardUnprocessableEntity

NewCreateRewardUnprocessableEntity creates a CreateRewardUnprocessableEntity with default headers values

func (*CreateRewardUnprocessableEntity) Error

func (*CreateRewardUnprocessableEntity) GetPayload

func (*CreateRewardUnprocessableEntity) ToJSONString added in v0.25.0

func (o *CreateRewardUnprocessableEntity) ToJSONString() string

type DeleteRewardConditionRecordNoContent added in v0.25.0

type DeleteRewardConditionRecordNoContent struct {
}

DeleteRewardConditionRecordNoContent handles this case with default header values.

Delete reward success

func NewDeleteRewardConditionRecordNoContent added in v0.25.0

func NewDeleteRewardConditionRecordNoContent() *DeleteRewardConditionRecordNoContent

NewDeleteRewardConditionRecordNoContent creates a DeleteRewardConditionRecordNoContent with default headers values

func (*DeleteRewardConditionRecordNoContent) Error added in v0.25.0

type DeleteRewardConditionRecordParams added in v0.25.0

type DeleteRewardConditionRecordParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.DeleteRewardConditionRequest
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*RewardID*/
	RewardID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewDeleteRewardConditionRecordParams added in v0.25.0

func NewDeleteRewardConditionRecordParams() *DeleteRewardConditionRecordParams

NewDeleteRewardConditionRecordParams creates a new DeleteRewardConditionRecordParams object with the default values initialized.

func NewDeleteRewardConditionRecordParamsWithContext added in v0.25.0

func NewDeleteRewardConditionRecordParamsWithContext(ctx context.Context) *DeleteRewardConditionRecordParams

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

func NewDeleteRewardConditionRecordParamsWithHTTPClient added in v0.25.0

func NewDeleteRewardConditionRecordParamsWithHTTPClient(client *http.Client) *DeleteRewardConditionRecordParams

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

func NewDeleteRewardConditionRecordParamsWithTimeout added in v0.25.0

func NewDeleteRewardConditionRecordParamsWithTimeout(timeout time.Duration) *DeleteRewardConditionRecordParams

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

func (*DeleteRewardConditionRecordParams) SetAuthInfoWriter added in v0.25.0

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

SetAuthInfoWriter adds the authInfoWriter to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetBody added in v0.25.0

SetBody adds the body to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetContext added in v0.25.0

SetContext adds the context to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetHTTPClient added in v0.25.0

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

SetHTTPClient adds the HTTPClient to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetHTTPClientTransport added in v0.25.0

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

SetHTTPClient adds the HTTPClient Transport to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetNamespace added in v0.25.0

func (o *DeleteRewardConditionRecordParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetRewardID added in v0.25.0

func (o *DeleteRewardConditionRecordParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetTimeout added in v0.25.0

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

SetTimeout adds the timeout to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithBody added in v0.25.0

WithBody adds the body to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithContext added in v0.25.0

WithContext adds the context to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithHTTPClient added in v0.25.0

WithHTTPClient adds the HTTPClient to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithNamespace added in v0.25.0

WithNamespace adds the namespace to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithRewardID added in v0.25.0

WithRewardID adds the rewardID to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithTimeout added in v0.25.0

WithTimeout adds the timeout to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WriteToRequest added in v0.25.0

WriteToRequest writes these params to a swagger request

type DeleteRewardConditionRecordReader added in v0.25.0

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

DeleteRewardConditionRecordReader is a Reader for the DeleteRewardConditionRecord structure.

func (*DeleteRewardConditionRecordReader) ReadResponse added in v0.25.0

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

ReadResponse reads a server response into the received o.

type DeleteRewardNotFound

type DeleteRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DeleteRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewDeleteRewardNotFound

func NewDeleteRewardNotFound() *DeleteRewardNotFound

NewDeleteRewardNotFound creates a DeleteRewardNotFound with default headers values

func (*DeleteRewardNotFound) Error

func (o *DeleteRewardNotFound) Error() string

func (*DeleteRewardNotFound) GetPayload

func (*DeleteRewardNotFound) ToJSONString added in v0.25.0

func (o *DeleteRewardNotFound) ToJSONString() string

type DeleteRewardOK

type DeleteRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

DeleteRewardOK handles this case with default header values.

successful operation

func NewDeleteRewardOK

func NewDeleteRewardOK() *DeleteRewardOK

NewDeleteRewardOK creates a DeleteRewardOK with default headers values

func (*DeleteRewardOK) Error

func (o *DeleteRewardOK) Error() string

func (*DeleteRewardOK) GetPayload

func (*DeleteRewardOK) ToJSONString added in v0.25.0

func (o *DeleteRewardOK) ToJSONString() string

type DeleteRewardParams

type DeleteRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Namespace

	*/
	Namespace string
	/*RewardID*/
	RewardID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// 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) SetContext

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

SetContext adds the context to the delete reward params

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) SetRewardID

func (o *DeleteRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId 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) WithContext

WithContext adds the context to the delete reward params

func (*DeleteRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) WithNamespace

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

WithNamespace adds the namespace to the delete reward params

func (*DeleteRewardParams) WithRewardID

func (o *DeleteRewardParams) WithRewardID(rewardID string) *DeleteRewardParams

WithRewardID adds the rewardID 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 ExportRewardsOK

type ExportRewardsOK struct {
	Payload io.Writer
}

ExportRewardsOK handles this case with default header values.

successful export of reward configs

func NewExportRewardsOK

func NewExportRewardsOK(writer io.Writer) *ExportRewardsOK

NewExportRewardsOK creates a ExportRewardsOK with default headers values

func (*ExportRewardsOK) Error

func (o *ExportRewardsOK) Error() string

func (*ExportRewardsOK) GetPayload added in v0.30.0

func (o *ExportRewardsOK) GetPayload() io.Writer

func (*ExportRewardsOK) ToJSONString added in v0.30.0

func (o *ExportRewardsOK) ToJSONString() string

type ExportRewardsParams

type ExportRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  namespace

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewExportRewardsParams

func NewExportRewardsParams() *ExportRewardsParams

NewExportRewardsParams creates a new ExportRewardsParams object with the default values initialized.

func NewExportRewardsParamsWithContext

func NewExportRewardsParamsWithContext(ctx context.Context) *ExportRewardsParams

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

func NewExportRewardsParamsWithHTTPClient

func NewExportRewardsParamsWithHTTPClient(client *http.Client) *ExportRewardsParams

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

func NewExportRewardsParamsWithTimeout

func NewExportRewardsParamsWithTimeout(timeout time.Duration) *ExportRewardsParams

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

func (*ExportRewardsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the export rewards params

func (*ExportRewardsParams) SetContext

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

SetContext adds the context to the export rewards params

func (*ExportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export rewards params

func (*ExportRewardsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the export rewards params

func (*ExportRewardsParams) SetNamespace

func (o *ExportRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the export rewards params

func (*ExportRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the export rewards params

func (*ExportRewardsParams) WithContext

WithContext adds the context to the export rewards params

func (*ExportRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the export rewards params

func (*ExportRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the export rewards params

func (*ExportRewardsParams) WithTimeout

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

WithTimeout adds the timeout to the export rewards params

func (*ExportRewardsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ExportRewardsReader

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

ExportRewardsReader is a Reader for the ExportRewards structure.

func (*ExportRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetReward1NotFound

type GetReward1NotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetReward1NotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetReward1NotFound

func NewGetReward1NotFound() *GetReward1NotFound

NewGetReward1NotFound creates a GetReward1NotFound with default headers values

func (*GetReward1NotFound) Error

func (o *GetReward1NotFound) Error() string

func (*GetReward1NotFound) GetPayload

func (*GetReward1NotFound) ToJSONString added in v0.25.0

func (o *GetReward1NotFound) ToJSONString() string

type GetReward1OK

type GetReward1OK struct {
	Payload *platformclientmodels.RewardInfo
}

GetReward1OK handles this case with default header values.

successful operation

func NewGetReward1OK

func NewGetReward1OK() *GetReward1OK

NewGetReward1OK creates a GetReward1OK with default headers values

func (*GetReward1OK) Error

func (o *GetReward1OK) Error() string

func (*GetReward1OK) GetPayload

func (o *GetReward1OK) GetPayload() *platformclientmodels.RewardInfo

func (*GetReward1OK) ToJSONString added in v0.25.0

func (o *GetReward1OK) ToJSONString() string

type GetReward1Params

type GetReward1Params struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewGetReward1Params

func NewGetReward1Params() *GetReward1Params

NewGetReward1Params creates a new GetReward1Params object with the default values initialized.

func NewGetReward1ParamsWithContext

func NewGetReward1ParamsWithContext(ctx context.Context) *GetReward1Params

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

func NewGetReward1ParamsWithHTTPClient

func NewGetReward1ParamsWithHTTPClient(client *http.Client) *GetReward1Params

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

func NewGetReward1ParamsWithTimeout

func NewGetReward1ParamsWithTimeout(timeout time.Duration) *GetReward1Params

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

func (*GetReward1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get reward 1 params

func (*GetReward1Params) SetContext

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

SetContext adds the context to the get reward 1 params

func (*GetReward1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward 1 params

func (*GetReward1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get reward 1 params

func (*GetReward1Params) SetNamespace

func (o *GetReward1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward 1 params

func (*GetReward1Params) SetRewardID

func (o *GetReward1Params) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the get reward 1 params

func (*GetReward1Params) SetTimeout

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

SetTimeout adds the timeout to the get reward 1 params

func (*GetReward1Params) WithContext

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

WithContext adds the context to the get reward 1 params

func (*GetReward1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reward 1 params

func (*GetReward1Params) WithNamespace

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

WithNamespace adds the namespace to the get reward 1 params

func (*GetReward1Params) WithRewardID

func (o *GetReward1Params) WithRewardID(rewardID string) *GetReward1Params

WithRewardID adds the rewardID to the get reward 1 params

func (*GetReward1Params) WithTimeout

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

WithTimeout adds the timeout to the get reward 1 params

func (*GetReward1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReward1Reader

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

GetReward1Reader is a Reader for the GetReward1 structure.

func (*GetReward1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetRewardByCodeNotFound added in v0.7.0

type GetRewardByCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetRewardByCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34043</td><td>Reward with code [{rewardCode}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetRewardByCodeNotFound added in v0.7.0

func NewGetRewardByCodeNotFound() *GetRewardByCodeNotFound

NewGetRewardByCodeNotFound creates a GetRewardByCodeNotFound with default headers values

func (*GetRewardByCodeNotFound) Error added in v0.7.0

func (o *GetRewardByCodeNotFound) Error() string

func (*GetRewardByCodeNotFound) GetPayload added in v0.7.0

func (*GetRewardByCodeNotFound) ToJSONString added in v0.25.0

func (o *GetRewardByCodeNotFound) ToJSONString() string

type GetRewardByCodeOK added in v0.7.0

type GetRewardByCodeOK struct {
	Payload *platformclientmodels.RewardInfo
}

GetRewardByCodeOK handles this case with default header values.

successful operation

func NewGetRewardByCodeOK added in v0.7.0

func NewGetRewardByCodeOK() *GetRewardByCodeOK

NewGetRewardByCodeOK creates a GetRewardByCodeOK with default headers values

func (*GetRewardByCodeOK) Error added in v0.7.0

func (o *GetRewardByCodeOK) Error() string

func (*GetRewardByCodeOK) GetPayload added in v0.7.0

func (*GetRewardByCodeOK) ToJSONString added in v0.25.0

func (o *GetRewardByCodeOK) ToJSONString() string

type GetRewardByCodeParams added in v0.7.0

type GetRewardByCodeParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewGetRewardByCodeParams added in v0.7.0

func NewGetRewardByCodeParams() *GetRewardByCodeParams

NewGetRewardByCodeParams creates a new GetRewardByCodeParams object with the default values initialized.

func NewGetRewardByCodeParamsWithContext added in v0.7.0

func NewGetRewardByCodeParamsWithContext(ctx context.Context) *GetRewardByCodeParams

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

func NewGetRewardByCodeParamsWithHTTPClient added in v0.7.0

func NewGetRewardByCodeParamsWithHTTPClient(client *http.Client) *GetRewardByCodeParams

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

func NewGetRewardByCodeParamsWithTimeout added in v0.7.0

func NewGetRewardByCodeParamsWithTimeout(timeout time.Duration) *GetRewardByCodeParams

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

func (*GetRewardByCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the get reward by code params

func (*GetRewardByCodeParams) SetContext added in v0.7.0

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

SetContext adds the context to the get reward by code params

func (*GetRewardByCodeParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the get reward by code params

func (*GetRewardByCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the get reward by code params

func (*GetRewardByCodeParams) SetNamespace added in v0.7.0

func (o *GetRewardByCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward by code params

func (*GetRewardByCodeParams) SetRewardCode added in v0.7.0

func (o *GetRewardByCodeParams) SetRewardCode(rewardCode string)

SetRewardCode adds the rewardCode to the get reward by code params

func (*GetRewardByCodeParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the get reward by code params

func (*GetRewardByCodeParams) WithContext added in v0.7.0

WithContext adds the context to the get reward by code params

func (*GetRewardByCodeParams) WithHTTPClient added in v0.7.0

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

WithHTTPClient adds the HTTPClient to the get reward by code params

func (*GetRewardByCodeParams) WithNamespace added in v0.7.0

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

WithNamespace adds the namespace to the get reward by code params

func (*GetRewardByCodeParams) WithRewardCode added in v0.7.0

func (o *GetRewardByCodeParams) WithRewardCode(rewardCode string) *GetRewardByCodeParams

WithRewardCode adds the rewardCode to the get reward by code params

func (*GetRewardByCodeParams) WithTimeout added in v0.7.0

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

WithTimeout adds the timeout to the get reward by code params

func (*GetRewardByCodeParams) WriteToRequest added in v0.7.0

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

WriteToRequest writes these params to a swagger request

type GetRewardByCodeReader added in v0.7.0

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

GetRewardByCodeReader is a Reader for the GetRewardByCode structure.

func (*GetRewardByCodeReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

type GetRewardNotFound

type GetRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewGetRewardNotFound

func NewGetRewardNotFound() *GetRewardNotFound

NewGetRewardNotFound creates a GetRewardNotFound with default headers values

func (*GetRewardNotFound) Error

func (o *GetRewardNotFound) Error() string

func (*GetRewardNotFound) GetPayload

func (*GetRewardNotFound) ToJSONString added in v0.25.0

func (o *GetRewardNotFound) ToJSONString() string

type GetRewardOK

type GetRewardOK struct {
	Payload *platformclientmodels.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() *platformclientmodels.RewardInfo

func (*GetRewardOK) ToJSONString added in v0.25.0

func (o *GetRewardOK) ToJSONString() string

type GetRewardParams

type GetRewardParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// 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) SetContext

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

SetContext adds the context to the get reward params

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) SetRewardID

func (o *GetRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId 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) 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) WithRewardID

func (o *GetRewardParams) WithRewardID(rewardID string) *GetRewardParams

WithRewardID adds the rewardID 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 ImportRewardsBadRequest

type ImportRewardsBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

ImportRewardsBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34021</td><td>Reward data for namespace [{namespace}] is invalid</td></tr><tr><td>34023</td><td>Reward Item [{itemId}] with item type [{itemType}] is not supported for duration or endDate</td></tr></table>

func NewImportRewardsBadRequest

func NewImportRewardsBadRequest() *ImportRewardsBadRequest

NewImportRewardsBadRequest creates a ImportRewardsBadRequest with default headers values

func (*ImportRewardsBadRequest) Error

func (o *ImportRewardsBadRequest) Error() string

func (*ImportRewardsBadRequest) GetPayload

func (*ImportRewardsBadRequest) ToJSONString added in v0.25.0

func (o *ImportRewardsBadRequest) ToJSONString() string

type ImportRewardsConflict added in v0.44.0

type ImportRewardsConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

ImportRewardsConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34074</td><td>Reward Item [{itemId}] duration and end date can’t be set at the same time</td></tr></table>

func NewImportRewardsConflict added in v0.44.0

func NewImportRewardsConflict() *ImportRewardsConflict

NewImportRewardsConflict creates a ImportRewardsConflict with default headers values

func (*ImportRewardsConflict) Error added in v0.44.0

func (o *ImportRewardsConflict) Error() string

func (*ImportRewardsConflict) GetPayload added in v0.44.0

func (*ImportRewardsConflict) ToJSONString added in v0.44.0

func (o *ImportRewardsConflict) ToJSONString() string

type ImportRewardsOK

type ImportRewardsOK struct {
}

ImportRewardsOK handles this case with default header values.

successful import of reward configs

func NewImportRewardsOK

func NewImportRewardsOK() *ImportRewardsOK

NewImportRewardsOK creates a ImportRewardsOK with default headers values

func (*ImportRewardsOK) Error

func (o *ImportRewardsOK) Error() string

type ImportRewardsParams

type ImportRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*File*/
	File runtime.NamedReadCloser
	/*Namespace
	  namespace

	*/
	Namespace string
	/*ReplaceExisting
	  replaceExisting

	*/
	ReplaceExisting bool

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewImportRewardsParams

func NewImportRewardsParams() *ImportRewardsParams

NewImportRewardsParams creates a new ImportRewardsParams object with the default values initialized.

func NewImportRewardsParamsWithContext

func NewImportRewardsParamsWithContext(ctx context.Context) *ImportRewardsParams

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

func NewImportRewardsParamsWithHTTPClient

func NewImportRewardsParamsWithHTTPClient(client *http.Client) *ImportRewardsParams

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

func NewImportRewardsParamsWithTimeout

func NewImportRewardsParamsWithTimeout(timeout time.Duration) *ImportRewardsParams

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

func (*ImportRewardsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the import rewards params

func (*ImportRewardsParams) SetContext

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

SetContext adds the context to the import rewards params

func (*ImportRewardsParams) SetFile

func (o *ImportRewardsParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the import rewards params

func (*ImportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import rewards params

func (*ImportRewardsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the import rewards params

func (*ImportRewardsParams) SetNamespace

func (o *ImportRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the import rewards params

func (*ImportRewardsParams) SetReplaceExisting

func (o *ImportRewardsParams) SetReplaceExisting(replaceExisting bool)

SetReplaceExisting adds the replaceExisting to the import rewards params

func (*ImportRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the import rewards params

func (*ImportRewardsParams) WithContext

WithContext adds the context to the import rewards params

func (*ImportRewardsParams) WithFile

WithFile adds the file to the import rewards params

func (*ImportRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the import rewards params

func (*ImportRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the import rewards params

func (*ImportRewardsParams) WithReplaceExisting

func (o *ImportRewardsParams) WithReplaceExisting(replaceExisting bool) *ImportRewardsParams

WithReplaceExisting adds the replaceExisting to the import rewards params

func (*ImportRewardsParams) WithTimeout

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

WithTimeout adds the timeout to the import rewards params

func (*ImportRewardsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ImportRewardsReader

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

ImportRewardsReader is a Reader for the ImportRewards structure.

func (*ImportRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewards1OK

type QueryRewards1OK struct {
	Payload *platformclientmodels.RewardPagingSlicedResult
}

QueryRewards1OK handles this case with default header values.

successful operation

func NewQueryRewards1OK

func NewQueryRewards1OK() *QueryRewards1OK

NewQueryRewards1OK creates a QueryRewards1OK with default headers values

func (*QueryRewards1OK) Error

func (o *QueryRewards1OK) Error() string

func (*QueryRewards1OK) GetPayload

func (*QueryRewards1OK) ToJSONString added in v0.25.0

func (o *QueryRewards1OK) ToJSONString() string

type QueryRewards1Params

type QueryRewards1Params struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*EventTopic
	  event topic

	*/
	EventTopic *string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Offset
	  offset

	*/
	Offset *int32
	/*SortBy
	  default is namespace:asc,rewardCode:asc, allow values: [namespace, namespace:asc, namespace:desc, rewardCode, rewardCode:asc, rewardCode:desc],and support sort group, eg: sortBy=namespace:asc,rewardCode:asc

	*/
	SortBy []string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewQueryRewards1Params

func NewQueryRewards1Params() *QueryRewards1Params

NewQueryRewards1Params creates a new QueryRewards1Params object with the default values initialized.

func NewQueryRewards1ParamsWithContext

func NewQueryRewards1ParamsWithContext(ctx context.Context) *QueryRewards1Params

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

func NewQueryRewards1ParamsWithHTTPClient

func NewQueryRewards1ParamsWithHTTPClient(client *http.Client) *QueryRewards1Params

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

func NewQueryRewards1ParamsWithTimeout

func NewQueryRewards1ParamsWithTimeout(timeout time.Duration) *QueryRewards1Params

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

func (*QueryRewards1Params) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query rewards 1 params

func (*QueryRewards1Params) SetContext

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

SetContext adds the context to the query rewards 1 params

func (*QueryRewards1Params) SetEventTopic

func (o *QueryRewards1Params) SetEventTopic(eventTopic *string)

SetEventTopic adds the eventTopic to the query rewards 1 params

func (*QueryRewards1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards 1 params

func (*QueryRewards1Params) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query rewards 1 params

func (*QueryRewards1Params) SetLimit

func (o *QueryRewards1Params) SetLimit(limit *int32)

SetLimit adds the limit to the query rewards 1 params

func (*QueryRewards1Params) SetNamespace

func (o *QueryRewards1Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the query rewards 1 params

func (*QueryRewards1Params) SetOffset

func (o *QueryRewards1Params) SetOffset(offset *int32)

SetOffset adds the offset to the query rewards 1 params

func (*QueryRewards1Params) SetSortBy

func (o *QueryRewards1Params) SetSortBy(sortBy []string)

SetSortBy adds the sortBy to the query rewards 1 params

func (*QueryRewards1Params) SetTimeout

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

SetTimeout adds the timeout to the query rewards 1 params

func (*QueryRewards1Params) WithContext

WithContext adds the context to the query rewards 1 params

func (*QueryRewards1Params) WithEventTopic

func (o *QueryRewards1Params) WithEventTopic(eventTopic *string) *QueryRewards1Params

WithEventTopic adds the eventTopic to the query rewards 1 params

func (*QueryRewards1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query rewards 1 params

func (*QueryRewards1Params) WithLimit

func (o *QueryRewards1Params) WithLimit(limit *int32) *QueryRewards1Params

WithLimit adds the limit to the query rewards 1 params

func (*QueryRewards1Params) WithNamespace

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

WithNamespace adds the namespace to the query rewards 1 params

func (*QueryRewards1Params) WithOffset

func (o *QueryRewards1Params) WithOffset(offset *int32) *QueryRewards1Params

WithOffset adds the offset to the query rewards 1 params

func (*QueryRewards1Params) WithSortBy

func (o *QueryRewards1Params) WithSortBy(sortBy []string) *QueryRewards1Params

WithSortBy adds the sortBy to the query rewards 1 params

func (*QueryRewards1Params) WithTimeout

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

WithTimeout adds the timeout to the query rewards 1 params

func (*QueryRewards1Params) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryRewards1Reader

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

QueryRewards1Reader is a Reader for the QueryRewards1 structure.

func (*QueryRewards1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryRewards1UnprocessableEntity

type QueryRewards1UnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QueryRewards1UnprocessableEntity 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 NewQueryRewards1UnprocessableEntity

func NewQueryRewards1UnprocessableEntity() *QueryRewards1UnprocessableEntity

NewQueryRewards1UnprocessableEntity creates a QueryRewards1UnprocessableEntity with default headers values

func (*QueryRewards1UnprocessableEntity) Error

func (*QueryRewards1UnprocessableEntity) GetPayload

func (*QueryRewards1UnprocessableEntity) ToJSONString added in v0.25.0

func (o *QueryRewards1UnprocessableEntity) ToJSONString() string

type QueryRewardsOK

type QueryRewardsOK struct {
	Payload *platformclientmodels.RewardPagingSlicedResult
}

QueryRewardsOK handles this case with default header values.

successful operation

func NewQueryRewardsOK

func NewQueryRewardsOK() *QueryRewardsOK

NewQueryRewardsOK creates a QueryRewardsOK with default headers values

func (*QueryRewardsOK) Error

func (o *QueryRewardsOK) Error() string

func (*QueryRewardsOK) GetPayload

func (*QueryRewardsOK) ToJSONString added in v0.25.0

func (o *QueryRewardsOK) ToJSONString() string

type QueryRewardsParams

type QueryRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*EventTopic*/
	EventTopic *string
	/*Limit
	  limit

	*/
	Limit *int32
	/*Offset
	  offset

	*/
	Offset *int32
	/*SortBy
	  default is namespace:asc,rewardCode:asc, allow values: [namespace, namespace:asc, namespace:desc, rewardCode, rewardCode:asc, rewardCode:desc, createdAt:asc, createdAt:desc],and support sort group, eg: sortBy=namespace:asc,rewardCode:asc

	*/
	SortBy []string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// 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) SetEventTopic

func (o *QueryRewardsParams) SetEventTopic(eventTopic *string)

SetEventTopic adds the eventTopic to the query rewards params

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) SetLimit

func (o *QueryRewardsParams) SetLimit(limit *int32)

SetLimit adds the limit 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) SetOffset

func (o *QueryRewardsParams) SetOffset(offset *int32)

SetOffset adds the offset to the query rewards params

func (*QueryRewardsParams) SetSortBy

func (o *QueryRewardsParams) SetSortBy(sortBy []string)

SetSortBy adds the sortBy to the query rewards params

func (*QueryRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the query rewards params

func (*QueryRewardsParams) WithContext

WithContext adds the context to the query rewards params

func (*QueryRewardsParams) WithEventTopic

func (o *QueryRewardsParams) WithEventTopic(eventTopic *string) *QueryRewardsParams

WithEventTopic adds the eventTopic 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) WithLimit

func (o *QueryRewardsParams) WithLimit(limit *int32) *QueryRewardsParams

WithLimit adds the limit 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) WithOffset

func (o *QueryRewardsParams) WithOffset(offset *int32) *QueryRewardsParams

WithOffset adds the offset to the query rewards params

func (*QueryRewardsParams) WithSortBy

func (o *QueryRewardsParams) WithSortBy(sortBy []string) *QueryRewardsParams

WithSortBy adds the sortBy 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 QueryRewardsUnprocessableEntity

type QueryRewardsUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QueryRewardsUnprocessableEntity 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 NewQueryRewardsUnprocessableEntity

func NewQueryRewardsUnprocessableEntity() *QueryRewardsUnprocessableEntity

NewQueryRewardsUnprocessableEntity creates a QueryRewardsUnprocessableEntity with default headers values

func (*QueryRewardsUnprocessableEntity) Error

func (*QueryRewardsUnprocessableEntity) GetPayload

func (*QueryRewardsUnprocessableEntity) ToJSONString added in v0.25.0

func (o *QueryRewardsUnprocessableEntity) ToJSONString() string

type UpdateRewardBadRequest added in v0.44.0

type UpdateRewardBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateRewardBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34023</td><td>Reward Item [{itemId}] with item type [{itemType}] is not supported for duration or endDate</td></tr></table>

func NewUpdateRewardBadRequest added in v0.44.0

func NewUpdateRewardBadRequest() *UpdateRewardBadRequest

NewUpdateRewardBadRequest creates a UpdateRewardBadRequest with default headers values

func (*UpdateRewardBadRequest) Error added in v0.44.0

func (o *UpdateRewardBadRequest) Error() string

func (*UpdateRewardBadRequest) GetPayload added in v0.44.0

func (*UpdateRewardBadRequest) ToJSONString added in v0.44.0

func (o *UpdateRewardBadRequest) ToJSONString() string

type UpdateRewardConflict

type UpdateRewardConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateRewardConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34072</td><td>Duplicate reward condition [{rewardConditionName}] found in reward [{rewardCode}]</td></tr><tr><td>34074</td><td>Reward Item [{itemId}] duration and end date can’t be set at the same time</td></tr></table>

func NewUpdateRewardConflict

func NewUpdateRewardConflict() *UpdateRewardConflict

NewUpdateRewardConflict creates a UpdateRewardConflict with default headers values

func (*UpdateRewardConflict) Error

func (o *UpdateRewardConflict) Error() string

func (*UpdateRewardConflict) GetPayload

func (*UpdateRewardConflict) ToJSONString added in v0.25.0

func (o *UpdateRewardConflict) ToJSONString() string

type UpdateRewardNotFound

type UpdateRewardNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateRewardNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>34041</td><td>Reward [{rewardId}] does not exist in namespace [{namespace}]</td></tr><tr><td>34042</td><td>Reward item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewUpdateRewardNotFound

func NewUpdateRewardNotFound() *UpdateRewardNotFound

NewUpdateRewardNotFound creates a UpdateRewardNotFound with default headers values

func (*UpdateRewardNotFound) Error

func (o *UpdateRewardNotFound) Error() string

func (*UpdateRewardNotFound) GetPayload

func (*UpdateRewardNotFound) ToJSONString added in v0.25.0

func (o *UpdateRewardNotFound) ToJSONString() string

type UpdateRewardOK

type UpdateRewardOK struct {
	Payload *platformclientmodels.RewardInfo
}

UpdateRewardOK handles this case with default header values.

successful operation

func NewUpdateRewardOK

func NewUpdateRewardOK() *UpdateRewardOK

NewUpdateRewardOK creates a UpdateRewardOK with default headers values

func (*UpdateRewardOK) Error

func (o *UpdateRewardOK) Error() string

func (*UpdateRewardOK) GetPayload

func (*UpdateRewardOK) ToJSONString added in v0.25.0

func (o *UpdateRewardOK) ToJSONString() string

type UpdateRewardParams

type UpdateRewardParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.RewardUpdate
	/*Namespace*/
	Namespace string
	/*RewardID*/
	RewardID string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client
	// contains filtered or unexported fields
}

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

func NewUpdateRewardParams

func NewUpdateRewardParams() *UpdateRewardParams

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

func NewUpdateRewardParamsWithContext

func NewUpdateRewardParamsWithContext(ctx context.Context) *UpdateRewardParams

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

func NewUpdateRewardParamsWithHTTPClient

func NewUpdateRewardParamsWithHTTPClient(client *http.Client) *UpdateRewardParams

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

func NewUpdateRewardParamsWithTimeout

func NewUpdateRewardParamsWithTimeout(timeout time.Duration) *UpdateRewardParams

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

func (*UpdateRewardParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the update reward params

func (*UpdateRewardParams) SetBody

SetBody adds the body to the update reward params

func (*UpdateRewardParams) SetContext

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

SetContext adds the context to the update reward params

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) SetRewardID

func (o *UpdateRewardParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the update reward params

func (*UpdateRewardParams) SetTimeout

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

SetTimeout adds the timeout to the update reward params

func (*UpdateRewardParams) WithBody

WithBody adds the body to the update reward params

func (*UpdateRewardParams) WithContext

WithContext adds the context to the update reward params

func (*UpdateRewardParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) WithNamespace

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

WithNamespace adds the namespace to the update reward params

func (*UpdateRewardParams) WithRewardID

func (o *UpdateRewardParams) WithRewardID(rewardID string) *UpdateRewardParams

WithRewardID adds the rewardID 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.

Jump to

Keyboard shortcuts

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