reward

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 16 Imported by: 1

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

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

func NewCheckEventConditionNotFound() *CheckEventConditionNotFound

NewCheckEventConditionNotFound creates a CheckEventConditionNotFound with default headers values

func (*CheckEventConditionNotFound) Error

func (*CheckEventConditionNotFound) GetPayload

func (*CheckEventConditionNotFound) ToJSONString

func (o *CheckEventConditionNotFound) ToJSONString() string

type CheckEventConditionOK

type CheckEventConditionOK struct {
	Payload *platformclientmodels.ConditionMatchResult
}

CheckEventConditionOK handles this case with default header values.

successful operation

func NewCheckEventConditionOK

func NewCheckEventConditionOK() *CheckEventConditionOK

NewCheckEventConditionOK creates a CheckEventConditionOK with default headers values

func (*CheckEventConditionOK) Error

func (o *CheckEventConditionOK) Error() string

func (*CheckEventConditionOK) GetPayload

func (*CheckEventConditionOK) ToJSONString

func (o *CheckEventConditionOK) ToJSONString() string

type CheckEventConditionParams

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

func NewCheckEventConditionParams() *CheckEventConditionParams

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

func NewCheckEventConditionParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the check event condition params

func (*CheckEventConditionParams) SetBody

SetBody adds the body to the check event condition params

func (*CheckEventConditionParams) SetContext

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

SetContext adds the context to the check event condition params

func (*CheckEventConditionParams) SetFlightId

func (o *CheckEventConditionParams) SetFlightId(flightId string)

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

func (*CheckEventConditionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the check event condition params

func (*CheckEventConditionParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the check event condition params

func (*CheckEventConditionParams) SetNamespace

func (o *CheckEventConditionParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the check event condition params

func (*CheckEventConditionParams) SetRewardID

func (o *CheckEventConditionParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the check event condition params

func (*CheckEventConditionParams) SetTimeout

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

SetTimeout adds the timeout to the check event condition params

func (*CheckEventConditionParams) WithBody

WithBody adds the body to the check event condition params

func (*CheckEventConditionParams) WithContext

WithContext adds the context to the check event condition params

func (*CheckEventConditionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the check event condition params

func (*CheckEventConditionParams) WithNamespace

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

WithNamespace adds the namespace to the check event condition params

func (*CheckEventConditionParams) WithRewardID

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

WithRewardID adds the rewardID to the check event condition params

func (*CheckEventConditionParams) WithTimeout

WithTimeout adds the timeout to the check event condition params

func (*CheckEventConditionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CheckEventConditionReader

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

CheckEventConditionReader is a Reader for the CheckEventCondition structure.

func (*CheckEventConditionReader) ReadResponse

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

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

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
  • Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU

func (*Client) CreateRewardShort

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
  • Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU

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

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

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

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

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

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

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

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

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

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

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

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
  • Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU

func (*Client) UpdateRewardShort

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

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

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:REWARD", action=4 (UPDATE)
  • Returns : reward instance
  • Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU

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

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><tr><td>34027</td><td>Reward Item [{sku}] with item type [{itemType}] is not supported for duration or endDate</td></tr></table>

func NewCreateRewardBadRequest

func NewCreateRewardBadRequest() *CreateRewardBadRequest

NewCreateRewardBadRequest creates a CreateRewardBadRequest with default headers values

func (*CreateRewardBadRequest) Error

func (o *CreateRewardBadRequest) Error() string

func (*CreateRewardBadRequest) GetPayload

func (*CreateRewardBadRequest) ToJSONString

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><tr><td>34076</td><td>Reward Item [{sku}] 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

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><tr><td>34044</td><td>Reward item [{sku}] 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

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

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

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

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

func NewCreateRewardParams

func NewCreateRewardParams() *CreateRewardParams

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

func NewCreateRewardParamsWithContext

func NewCreateRewardParamsWithContext(ctx context.Context) *CreateRewardParams

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

func NewCreateRewardParamsWithHTTPClient

func NewCreateRewardParamsWithHTTPClient(client *http.Client) *CreateRewardParams

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

func NewCreateRewardParamsWithTimeout

func NewCreateRewardParamsWithTimeout(timeout time.Duration) *CreateRewardParams

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

func (*CreateRewardParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the create reward params

func (*CreateRewardParams) SetBody

SetBody adds the body to the create reward params

func (*CreateRewardParams) SetContext

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

SetContext adds the context to the create reward params

func (*CreateRewardParams) SetFlightId

func (o *CreateRewardParams) SetFlightId(flightId string)

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

func (*CreateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create reward params

func (*CreateRewardParams) SetHTTPClientTransport

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

func (o *CreateRewardUnprocessableEntity) ToJSONString() string

type DeleteRewardConditionRecordNoContent

type DeleteRewardConditionRecordNoContent struct {
}

DeleteRewardConditionRecordNoContent handles this case with default header values.

Delete reward success

func NewDeleteRewardConditionRecordNoContent

func NewDeleteRewardConditionRecordNoContent() *DeleteRewardConditionRecordNoContent

NewDeleteRewardConditionRecordNoContent creates a DeleteRewardConditionRecordNoContent with default headers values

func (*DeleteRewardConditionRecordNoContent) Error

type DeleteRewardConditionRecordParams

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

func NewDeleteRewardConditionRecordParams() *DeleteRewardConditionRecordParams

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

func NewDeleteRewardConditionRecordParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetBody

SetBody adds the body to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetContext

SetContext adds the context to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetFlightId

func (o *DeleteRewardConditionRecordParams) SetFlightId(flightId string)

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

func (*DeleteRewardConditionRecordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetHTTPClientTransport

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

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

func (*DeleteRewardConditionRecordParams) SetNamespace

func (o *DeleteRewardConditionRecordParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetRewardID

func (o *DeleteRewardConditionRecordParams) SetRewardID(rewardID string)

SetRewardID adds the rewardId to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) SetTimeout

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

SetTimeout adds the timeout to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithBody

WithBody adds the body to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithContext

WithContext adds the context to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithNamespace

WithNamespace adds the namespace to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithRewardID

WithRewardID adds the rewardID to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WithTimeout

WithTimeout adds the timeout to the delete reward condition record params

func (*DeleteRewardConditionRecordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteRewardConditionRecordReader

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

DeleteRewardConditionRecordReader is a Reader for the DeleteRewardConditionRecord structure.

func (*DeleteRewardConditionRecordReader) ReadResponse

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

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

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

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

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

func NewDeleteRewardParams

func NewDeleteRewardParams() *DeleteRewardParams

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

func NewDeleteRewardParamsWithContext

func NewDeleteRewardParamsWithContext(ctx context.Context) *DeleteRewardParams

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

func NewDeleteRewardParamsWithHTTPClient

func NewDeleteRewardParamsWithHTTPClient(client *http.Client) *DeleteRewardParams

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

func NewDeleteRewardParamsWithTimeout

func NewDeleteRewardParamsWithTimeout(timeout time.Duration) *DeleteRewardParams

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

func (*DeleteRewardParams) SetAuthInfoWriter

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

func (o *DeleteRewardParams) SetFlightId(flightId string)

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

func (*DeleteRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete reward params

func (*DeleteRewardParams) SetHTTPClientTransport

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

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

func (*ExportRewardsOK) ToJSONString

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

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

func (o *ExportRewardsParams) SetFlightId(flightId string)

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

func (*ExportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export rewards params

func (*ExportRewardsParams) SetHTTPClientTransport

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

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

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

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

func (o *GetReward1Params) SetFlightId(flightId string)

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

func (*GetReward1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward 1 params

func (*GetReward1Params) SetHTTPClientTransport

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

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

func NewGetRewardByCodeNotFound() *GetRewardByCodeNotFound

NewGetRewardByCodeNotFound creates a GetRewardByCodeNotFound with default headers values

func (*GetRewardByCodeNotFound) Error

func (o *GetRewardByCodeNotFound) Error() string

func (*GetRewardByCodeNotFound) GetPayload

func (*GetRewardByCodeNotFound) ToJSONString

func (o *GetRewardByCodeNotFound) ToJSONString() string

type GetRewardByCodeOK

type GetRewardByCodeOK struct {
	Payload *platformclientmodels.RewardInfo
}

GetRewardByCodeOK handles this case with default header values.

successful operation

func NewGetRewardByCodeOK

func NewGetRewardByCodeOK() *GetRewardByCodeOK

NewGetRewardByCodeOK creates a GetRewardByCodeOK with default headers values

func (*GetRewardByCodeOK) Error

func (o *GetRewardByCodeOK) Error() string

func (*GetRewardByCodeOK) GetPayload

func (*GetRewardByCodeOK) ToJSONString

func (o *GetRewardByCodeOK) ToJSONString() string

type GetRewardByCodeParams

type GetRewardByCodeParams struct {

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

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

func NewGetRewardByCodeParams() *GetRewardByCodeParams

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

func NewGetRewardByCodeParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get reward by code params

func (*GetRewardByCodeParams) SetContext

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

SetContext adds the context to the get reward by code params

func (*GetRewardByCodeParams) SetFlightId

func (o *GetRewardByCodeParams) SetFlightId(flightId string)

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

func (*GetRewardByCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward by code params

func (*GetRewardByCodeParams) SetHTTPClientTransport

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

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

func (*GetRewardByCodeParams) SetNamespace

func (o *GetRewardByCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get reward by code params

func (*GetRewardByCodeParams) SetRewardCode

func (o *GetRewardByCodeParams) SetRewardCode(rewardCode string)

SetRewardCode adds the rewardCode to the get reward by code params

func (*GetRewardByCodeParams) SetTimeout

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

SetTimeout adds the timeout to the get reward by code params

func (*GetRewardByCodeParams) WithContext

WithContext adds the context to the get reward by code params

func (*GetRewardByCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get reward by code params

func (*GetRewardByCodeParams) WithNamespace

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

WithNamespace adds the namespace to the get reward by code params

func (*GetRewardByCodeParams) WithRewardCode

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

WithRewardCode adds the rewardCode to the get reward by code params

func (*GetRewardByCodeParams) WithTimeout

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

WithTimeout adds the timeout to the get reward by code params

func (*GetRewardByCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetRewardByCodeReader

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

GetRewardByCodeReader is a Reader for the GetRewardByCode structure.

func (*GetRewardByCodeReader) ReadResponse

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

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

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

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

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

func NewGetRewardParams

func NewGetRewardParams() *GetRewardParams

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

func NewGetRewardParamsWithContext

func NewGetRewardParamsWithContext(ctx context.Context) *GetRewardParams

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

func NewGetRewardParamsWithHTTPClient

func NewGetRewardParamsWithHTTPClient(client *http.Client) *GetRewardParams

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

func NewGetRewardParamsWithTimeout

func NewGetRewardParamsWithTimeout(timeout time.Duration) *GetRewardParams

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

func (*GetRewardParams) SetAuthInfoWriter

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

func (o *GetRewardParams) SetFlightId(flightId string)

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

func (*GetRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get reward params

func (*GetRewardParams) SetHTTPClientTransport

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><tr><td>34027</td><td>Reward Item [{sku}] 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

func (o *ImportRewardsBadRequest) ToJSONString() string

type ImportRewardsConflict

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><tr><td>34076</td><td>Reward Item [{sku}] duration and end date can’t be set at the same time</td></tr></table>

func NewImportRewardsConflict

func NewImportRewardsConflict() *ImportRewardsConflict

NewImportRewardsConflict creates a ImportRewardsConflict with default headers values

func (*ImportRewardsConflict) Error

func (o *ImportRewardsConflict) Error() string

func (*ImportRewardsConflict) GetPayload

func (*ImportRewardsConflict) ToJSONString

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

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

func (o *ImportRewardsParams) SetFlightId(flightId string)

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

func (*ImportRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the import rewards params

func (*ImportRewardsParams) SetHTTPClientTransport

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

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

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// 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

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

func (o *QueryRewards1Params) SetFlightId(flightId string)

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

func (*QueryRewards1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards 1 params

func (*QueryRewards1Params) SetHTTPClientTransport

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

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

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

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

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

func NewQueryRewardsParams

func NewQueryRewardsParams() *QueryRewardsParams

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

func NewQueryRewardsParamsWithContext

func NewQueryRewardsParamsWithContext(ctx context.Context) *QueryRewardsParams

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

func NewQueryRewardsParamsWithHTTPClient

func NewQueryRewardsParamsWithHTTPClient(client *http.Client) *QueryRewardsParams

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

func NewQueryRewardsParamsWithTimeout

func NewQueryRewardsParamsWithTimeout(timeout time.Duration) *QueryRewardsParams

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

func (*QueryRewardsParams) SetAuthInfoWriter

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

func (o *QueryRewardsParams) SetFlightId(flightId string)

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

func (*QueryRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query rewards params

func (*QueryRewardsParams) SetHTTPClientTransport

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

func (o *QueryRewardsUnprocessableEntity) ToJSONString() string

type UpdateRewardBadRequest

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><tr><td>34027</td><td>Reward Item [{sku}] with item type [{itemType}] is not supported for duration or endDate</td></tr></table>

func NewUpdateRewardBadRequest

func NewUpdateRewardBadRequest() *UpdateRewardBadRequest

NewUpdateRewardBadRequest creates a UpdateRewardBadRequest with default headers values

func (*UpdateRewardBadRequest) Error

func (o *UpdateRewardBadRequest) Error() string

func (*UpdateRewardBadRequest) GetPayload

func (*UpdateRewardBadRequest) ToJSONString

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><tr><td>34076</td><td>Reward Item [{sku}] 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

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><tr><td>34044</td><td>Reward item [{sku}] 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

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

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

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

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

func NewUpdateRewardParams

func NewUpdateRewardParams() *UpdateRewardParams

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

func NewUpdateRewardParamsWithContext

func NewUpdateRewardParamsWithContext(ctx context.Context) *UpdateRewardParams

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

func NewUpdateRewardParamsWithHTTPClient

func NewUpdateRewardParamsWithHTTPClient(client *http.Client) *UpdateRewardParams

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

func NewUpdateRewardParamsWithTimeout

func NewUpdateRewardParamsWithTimeout(timeout time.Duration) *UpdateRewardParams

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

func (*UpdateRewardParams) SetAuthInfoWriter

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

func (o *UpdateRewardParams) SetFlightId(flightId string)

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

func (*UpdateRewardParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update reward params

func (*UpdateRewardParams) SetHTTPClientTransport

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