Documentation ¶
Index ¶
- Constants
- type CheckEventConditionNotFound
- type CheckEventConditionOK
- type CheckEventConditionParams
- func NewCheckEventConditionParams() *CheckEventConditionParams
- func NewCheckEventConditionParamsWithContext(ctx context.Context) *CheckEventConditionParams
- func NewCheckEventConditionParamsWithHTTPClient(client *http.Client) *CheckEventConditionParams
- func NewCheckEventConditionParamsWithTimeout(timeout time.Duration) *CheckEventConditionParams
- func (o *CheckEventConditionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CheckEventConditionParams) SetBody(body *platformclientmodels.EventPayload)
- func (o *CheckEventConditionParams) SetContext(ctx context.Context)
- func (o *CheckEventConditionParams) SetFlightId(flightId string)
- func (o *CheckEventConditionParams) SetHTTPClient(client *http.Client)
- func (o *CheckEventConditionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CheckEventConditionParams) SetNamespace(namespace string)
- func (o *CheckEventConditionParams) SetRewardID(rewardID string)
- func (o *CheckEventConditionParams) SetTimeout(timeout time.Duration)
- func (o *CheckEventConditionParams) WithBody(body *platformclientmodels.EventPayload) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithContext(ctx context.Context) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithHTTPClient(client *http.Client) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithNamespace(namespace string) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithRewardID(rewardID string) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WithTimeout(timeout time.Duration) *CheckEventConditionParams
- func (o *CheckEventConditionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CheckEventConditionReader
- type Client
- func (a *Client) CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error)deprecated
- func (a *Client) CheckEventConditionShort(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, error)
- func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, ...)deprecated
- func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, error)
- func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error)deprecated
- func (a *Client) DeleteRewardConditionRecord(params *DeleteRewardConditionRecordParams, ...) (*DeleteRewardConditionRecordNoContent, error)deprecated
- func (a *Client) DeleteRewardConditionRecordShort(params *DeleteRewardConditionRecordParams, ...) (*DeleteRewardConditionRecordNoContent, error)
- func (a *Client) DeleteRewardShort(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, error)
- func (a *Client) ExportRewards(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ExportRewardsOK, error)deprecated
- func (a *Client) ExportRewardsShort(params *ExportRewardsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ExportRewardsOK, error)
- func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error)deprecated
- func (a *Client) GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error)deprecated
- func (a *Client) GetReward1Short(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, error)
- func (a *Client) GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error)deprecated
- func (a *Client) GetRewardByCodeShort(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, error)
- func (a *Client) GetRewardShort(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, error)
- func (a *Client) ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, *ImportRewardsConflict, error)deprecated
- func (a *Client) ImportRewardsShort(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, error)
- func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error)deprecated
- func (a *Client) QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error)deprecated
- func (a *Client) QueryRewards1Short(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, error)
- func (a *Client) QueryRewardsShort(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, ...)deprecated
- func (a *Client) UpdateRewardShort(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, error)
- type ClientService
- type CreateRewardBadRequest
- type CreateRewardConflict
- type CreateRewardCreated
- type CreateRewardNotFound
- type CreateRewardParams
- func (o *CreateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateRewardParams) SetBody(body *platformclientmodels.RewardCreate)
- func (o *CreateRewardParams) SetContext(ctx context.Context)
- func (o *CreateRewardParams) SetFlightId(flightId string)
- func (o *CreateRewardParams) SetHTTPClient(client *http.Client)
- func (o *CreateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateRewardParams) SetNamespace(namespace string)
- func (o *CreateRewardParams) SetTimeout(timeout time.Duration)
- func (o *CreateRewardParams) WithBody(body *platformclientmodels.RewardCreate) *CreateRewardParams
- func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
- func (o *CreateRewardParams) WithHTTPClient(client *http.Client) *CreateRewardParams
- func (o *CreateRewardParams) WithNamespace(namespace string) *CreateRewardParams
- func (o *CreateRewardParams) WithTimeout(timeout time.Duration) *CreateRewardParams
- func (o *CreateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateRewardReader
- type CreateRewardUnprocessableEntity
- type DeleteRewardConditionRecordNoContent
- type DeleteRewardConditionRecordParams
- func NewDeleteRewardConditionRecordParams() *DeleteRewardConditionRecordParams
- func NewDeleteRewardConditionRecordParamsWithContext(ctx context.Context) *DeleteRewardConditionRecordParams
- func NewDeleteRewardConditionRecordParamsWithHTTPClient(client *http.Client) *DeleteRewardConditionRecordParams
- func NewDeleteRewardConditionRecordParamsWithTimeout(timeout time.Duration) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DeleteRewardConditionRecordParams) SetBody(body *platformclientmodels.DeleteRewardConditionRequest)
- func (o *DeleteRewardConditionRecordParams) SetContext(ctx context.Context)
- func (o *DeleteRewardConditionRecordParams) SetFlightId(flightId string)
- func (o *DeleteRewardConditionRecordParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRewardConditionRecordParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DeleteRewardConditionRecordParams) SetNamespace(namespace string)
- func (o *DeleteRewardConditionRecordParams) SetRewardID(rewardID string)
- func (o *DeleteRewardConditionRecordParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRewardConditionRecordParams) WithBody(body *platformclientmodels.DeleteRewardConditionRequest) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WithContext(ctx context.Context) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WithHTTPClient(client *http.Client) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WithNamespace(namespace string) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WithRewardID(rewardID string) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WithTimeout(timeout time.Duration) *DeleteRewardConditionRecordParams
- func (o *DeleteRewardConditionRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRewardConditionRecordReader
- type DeleteRewardNotFound
- type DeleteRewardOK
- type DeleteRewardParams
- func (o *DeleteRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DeleteRewardParams) SetContext(ctx context.Context)
- func (o *DeleteRewardParams) SetFlightId(flightId string)
- func (o *DeleteRewardParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DeleteRewardParams) SetNamespace(namespace string)
- func (o *DeleteRewardParams) SetRewardID(rewardID string)
- func (o *DeleteRewardParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
- func (o *DeleteRewardParams) WithHTTPClient(client *http.Client) *DeleteRewardParams
- func (o *DeleteRewardParams) WithNamespace(namespace string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithRewardID(rewardID string) *DeleteRewardParams
- func (o *DeleteRewardParams) WithTimeout(timeout time.Duration) *DeleteRewardParams
- func (o *DeleteRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRewardReader
- type ExportRewardsOK
- type ExportRewardsParams
- func (o *ExportRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ExportRewardsParams) SetContext(ctx context.Context)
- func (o *ExportRewardsParams) SetFlightId(flightId string)
- func (o *ExportRewardsParams) SetHTTPClient(client *http.Client)
- func (o *ExportRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ExportRewardsParams) SetNamespace(namespace string)
- func (o *ExportRewardsParams) SetTimeout(timeout time.Duration)
- func (o *ExportRewardsParams) WithContext(ctx context.Context) *ExportRewardsParams
- func (o *ExportRewardsParams) WithHTTPClient(client *http.Client) *ExportRewardsParams
- func (o *ExportRewardsParams) WithNamespace(namespace string) *ExportRewardsParams
- func (o *ExportRewardsParams) WithTimeout(timeout time.Duration) *ExportRewardsParams
- func (o *ExportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExportRewardsReader
- type GetReward1NotFound
- type GetReward1OK
- type GetReward1Params
- func (o *GetReward1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetReward1Params) SetContext(ctx context.Context)
- func (o *GetReward1Params) SetFlightId(flightId string)
- func (o *GetReward1Params) SetHTTPClient(client *http.Client)
- func (o *GetReward1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetReward1Params) SetNamespace(namespace string)
- func (o *GetReward1Params) SetRewardID(rewardID string)
- func (o *GetReward1Params) SetTimeout(timeout time.Duration)
- func (o *GetReward1Params) WithContext(ctx context.Context) *GetReward1Params
- func (o *GetReward1Params) WithHTTPClient(client *http.Client) *GetReward1Params
- func (o *GetReward1Params) WithNamespace(namespace string) *GetReward1Params
- func (o *GetReward1Params) WithRewardID(rewardID string) *GetReward1Params
- func (o *GetReward1Params) WithTimeout(timeout time.Duration) *GetReward1Params
- func (o *GetReward1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReward1Reader
- type GetRewardByCodeNotFound
- type GetRewardByCodeOK
- type GetRewardByCodeParams
- func NewGetRewardByCodeParams() *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithContext(ctx context.Context) *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithHTTPClient(client *http.Client) *GetRewardByCodeParams
- func NewGetRewardByCodeParamsWithTimeout(timeout time.Duration) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetRewardByCodeParams) SetContext(ctx context.Context)
- func (o *GetRewardByCodeParams) SetFlightId(flightId string)
- func (o *GetRewardByCodeParams) SetHTTPClient(client *http.Client)
- func (o *GetRewardByCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetRewardByCodeParams) SetNamespace(namespace string)
- func (o *GetRewardByCodeParams) SetRewardCode(rewardCode string)
- func (o *GetRewardByCodeParams) SetTimeout(timeout time.Duration)
- func (o *GetRewardByCodeParams) WithContext(ctx context.Context) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithHTTPClient(client *http.Client) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithNamespace(namespace string) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithRewardCode(rewardCode string) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WithTimeout(timeout time.Duration) *GetRewardByCodeParams
- func (o *GetRewardByCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRewardByCodeReader
- type GetRewardNotFound
- type GetRewardOK
- type GetRewardParams
- func (o *GetRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetRewardParams) SetContext(ctx context.Context)
- func (o *GetRewardParams) SetFlightId(flightId string)
- func (o *GetRewardParams) SetHTTPClient(client *http.Client)
- func (o *GetRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetRewardParams) SetNamespace(namespace string)
- func (o *GetRewardParams) SetRewardID(rewardID string)
- func (o *GetRewardParams) SetTimeout(timeout time.Duration)
- func (o *GetRewardParams) WithContext(ctx context.Context) *GetRewardParams
- func (o *GetRewardParams) WithHTTPClient(client *http.Client) *GetRewardParams
- func (o *GetRewardParams) WithNamespace(namespace string) *GetRewardParams
- func (o *GetRewardParams) WithRewardID(rewardID string) *GetRewardParams
- func (o *GetRewardParams) WithTimeout(timeout time.Duration) *GetRewardParams
- func (o *GetRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetRewardReader
- type ImportRewardsBadRequest
- type ImportRewardsConflict
- type ImportRewardsOK
- type ImportRewardsParams
- func (o *ImportRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ImportRewardsParams) SetContext(ctx context.Context)
- func (o *ImportRewardsParams) SetFile(file runtime.NamedReadCloser)
- func (o *ImportRewardsParams) SetFlightId(flightId string)
- func (o *ImportRewardsParams) SetHTTPClient(client *http.Client)
- func (o *ImportRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ImportRewardsParams) SetNamespace(namespace string)
- func (o *ImportRewardsParams) SetReplaceExisting(replaceExisting bool)
- func (o *ImportRewardsParams) SetTimeout(timeout time.Duration)
- func (o *ImportRewardsParams) WithContext(ctx context.Context) *ImportRewardsParams
- func (o *ImportRewardsParams) WithFile(file runtime.NamedReadCloser) *ImportRewardsParams
- func (o *ImportRewardsParams) WithHTTPClient(client *http.Client) *ImportRewardsParams
- func (o *ImportRewardsParams) WithNamespace(namespace string) *ImportRewardsParams
- func (o *ImportRewardsParams) WithReplaceExisting(replaceExisting bool) *ImportRewardsParams
- func (o *ImportRewardsParams) WithTimeout(timeout time.Duration) *ImportRewardsParams
- func (o *ImportRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ImportRewardsReader
- type QueryRewards1OK
- type QueryRewards1Params
- func (o *QueryRewards1Params) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryRewards1Params) SetContext(ctx context.Context)
- func (o *QueryRewards1Params) SetEventTopic(eventTopic *string)
- func (o *QueryRewards1Params) SetFlightId(flightId string)
- func (o *QueryRewards1Params) SetHTTPClient(client *http.Client)
- func (o *QueryRewards1Params) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryRewards1Params) SetLimit(limit *int32)
- func (o *QueryRewards1Params) SetNamespace(namespace string)
- func (o *QueryRewards1Params) SetOffset(offset *int32)
- func (o *QueryRewards1Params) SetSortBy(sortBy []string)
- func (o *QueryRewards1Params) SetTimeout(timeout time.Duration)
- func (o *QueryRewards1Params) WithContext(ctx context.Context) *QueryRewards1Params
- func (o *QueryRewards1Params) WithEventTopic(eventTopic *string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithHTTPClient(client *http.Client) *QueryRewards1Params
- func (o *QueryRewards1Params) WithLimit(limit *int32) *QueryRewards1Params
- func (o *QueryRewards1Params) WithNamespace(namespace string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithOffset(offset *int32) *QueryRewards1Params
- func (o *QueryRewards1Params) WithSortBy(sortBy []string) *QueryRewards1Params
- func (o *QueryRewards1Params) WithTimeout(timeout time.Duration) *QueryRewards1Params
- func (o *QueryRewards1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRewards1Reader
- type QueryRewards1UnprocessableEntity
- type QueryRewardsOK
- type QueryRewardsParams
- func (o *QueryRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryRewardsParams) SetContext(ctx context.Context)
- func (o *QueryRewardsParams) SetEventTopic(eventTopic *string)
- func (o *QueryRewardsParams) SetFlightId(flightId string)
- func (o *QueryRewardsParams) SetHTTPClient(client *http.Client)
- func (o *QueryRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryRewardsParams) SetLimit(limit *int32)
- func (o *QueryRewardsParams) SetNamespace(namespace string)
- func (o *QueryRewardsParams) SetOffset(offset *int32)
- func (o *QueryRewardsParams) SetSortBy(sortBy []string)
- func (o *QueryRewardsParams) SetTimeout(timeout time.Duration)
- func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
- func (o *QueryRewardsParams) WithEventTopic(eventTopic *string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithHTTPClient(client *http.Client) *QueryRewardsParams
- func (o *QueryRewardsParams) WithLimit(limit *int32) *QueryRewardsParams
- func (o *QueryRewardsParams) WithNamespace(namespace string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithOffset(offset *int32) *QueryRewardsParams
- func (o *QueryRewardsParams) WithSortBy(sortBy []string) *QueryRewardsParams
- func (o *QueryRewardsParams) WithTimeout(timeout time.Duration) *QueryRewardsParams
- func (o *QueryRewardsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRewardsReader
- type QueryRewardsUnprocessableEntity
- type UpdateRewardBadRequest
- type UpdateRewardConflict
- type UpdateRewardNotFound
- type UpdateRewardOK
- type UpdateRewardParams
- func (o *UpdateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateRewardParams) SetBody(body *platformclientmodels.RewardUpdate)
- func (o *UpdateRewardParams) SetContext(ctx context.Context)
- func (o *UpdateRewardParams) SetFlightId(flightId string)
- func (o *UpdateRewardParams) SetHTTPClient(client *http.Client)
- func (o *UpdateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateRewardParams) SetNamespace(namespace string)
- func (o *UpdateRewardParams) SetRewardID(rewardID string)
- func (o *UpdateRewardParams) SetTimeout(timeout time.Duration)
- func (o *UpdateRewardParams) WithBody(body *platformclientmodels.RewardUpdate) *UpdateRewardParams
- func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
- func (o *UpdateRewardParams) WithHTTPClient(client *http.Client) *UpdateRewardParams
- func (o *UpdateRewardParams) WithNamespace(namespace string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithRewardID(rewardID string) *UpdateRewardParams
- func (o *UpdateRewardParams) WithTimeout(timeout time.Duration) *UpdateRewardParams
- func (o *UpdateRewardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateRewardReader
Constants ¶
const ( QueryRewards1NamespaceConstant = "namespace" QueryRewards1NamespaceAscConstant = "namespace:asc" QueryRewards1NamespaceDescConstant = "namespace:desc" QueryRewards1RewardCodeConstant = "rewardCode" QueryRewards1RewardCodeAscConstant = "rewardCode:asc" QueryRewards1RewardCodeDescConstant = "rewardCode:desc" )
Get the enum in QueryRewards1Params
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 (o *CheckEventConditionNotFound) Error() string
func (*CheckEventConditionNotFound) GetPayload ¶ added in v0.8.0
func (o *CheckEventConditionNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *CheckEventConditionOK) GetPayload() *platformclientmodels.ConditionMatchResult
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 // 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 ¶ 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
func (o *CheckEventConditionParams) SetBody(body *platformclientmodels.EventPayload)
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) SetFlightId ¶ added in v0.63.0
func (o *CheckEventConditionParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
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
func (o *CheckEventConditionParams) WithBody(body *platformclientmodels.EventPayload) *CheckEventConditionParams
WithBody adds the body to the check event condition params
func (*CheckEventConditionParams) WithContext ¶ added in v0.8.0
func (o *CheckEventConditionParams) WithContext(ctx context.Context) *CheckEventConditionParams
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
func (o *CheckEventConditionParams) WithTimeout(timeout time.Duration) *CheckEventConditionParams
WithTimeout adds the timeout to the check event condition params
func (*CheckEventConditionParams) WriteToRequest ¶ added in v0.8.0
func (o *CheckEventConditionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (a *Client) CheckEventCondition(params *CheckEventConditionParams, authInfo runtime.ClientAuthInfoWriter) (*CheckEventConditionOK, *CheckEventConditionNotFound, error)
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: * 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: * Returns : match result
func (*Client) CreateReward
deprecated
func (a *Client) CreateReward(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use CreateRewardShort instead.
CreateReward create a reward This API is used to create a reward. Other detail info:
- Returns : created reward data
- Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU
func (*Client) CreateRewardShort ¶ added in v0.8.0
func (a *Client) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, error)
CreateRewardShort create a reward This API is used to create a reward. Other detail info:
- Returns : created reward data
- Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU
func (*Client) DeleteReward
deprecated
func (a *Client) DeleteReward(params *DeleteRewardParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardOK, *DeleteRewardNotFound, error)
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:
- Returns : the deleted reward data
func (*Client) DeleteRewardConditionRecord
deprecated
added in
v0.25.0
func (a *Client) DeleteRewardConditionRecord(params *DeleteRewardConditionRecordParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteRewardConditionRecordNoContent, error)
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:
- 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:
- 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:
- 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.
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.
func (*Client) GetReward
deprecated
func (a *Client) GetReward(params *GetRewardParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardOK, *GetRewardNotFound, error)
Deprecated: 2022-08-10 - Use GetRewardShort instead.
GetReward get a reward This API is used to get reward by reward Id. Other detail info:
- Returns : reward instance
func (*Client) GetReward1
deprecated
func (a *Client) GetReward1(params *GetReward1Params, authInfo runtime.ClientAuthInfoWriter) (*GetReward1OK, *GetReward1NotFound, error)
Deprecated: 2022-08-10 - Use GetReward1Short instead.
GetReward1 get a reward This API is used to get reward by reward Id. Other detail info:
- 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:
- Returns : reward instance
func (*Client) GetRewardByCode
deprecated
added in
v0.7.0
func (a *Client) GetRewardByCode(params *GetRewardByCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetRewardByCodeOK, *GetRewardByCodeNotFound, error)
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:
- 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:
- 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:
- Returns : reward instance
func (*Client) ImportRewards
deprecated
func (a *Client) ImportRewards(params *ImportRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*ImportRewardsOK, *ImportRewardsBadRequest, *ImportRewardsConflict, error)
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.
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.
func (*Client) QueryRewards
deprecated
func (a *Client) QueryRewards(params *QueryRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRewardsOK, *QueryRewardsUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use QueryRewardsShort instead.
QueryRewards query rewards by criteria This API is used to query rewards by criteria.
Other detail info:
- Returns : the list of rewards
func (*Client) QueryRewards1
deprecated
func (a *Client) QueryRewards1(params *QueryRewards1Params, authInfo runtime.ClientAuthInfoWriter) (*QueryRewards1OK, *QueryRewards1UnprocessableEntity, error)
Deprecated: 2022-08-10 - Use QueryRewards1Short instead.
QueryRewards1 query rewards by criteria This API is used to query rewards by criteria.
Other detail info:
- 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:
- 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:
- Returns : the list of rewards
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateReward
deprecated
func (a *Client) UpdateReward(params *UpdateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateRewardOK, *UpdateRewardBadRequest, *UpdateRewardNotFound, *UpdateRewardConflict, error)
Deprecated: 2022-08-10 - Use UpdateRewardShort instead.
UpdateReward update a reward This API is used to update a reward. Other detail info:
- Returns : reward instance
- Acceptable values for rewardItem's identityType are : ITEM_ID or ITEM_SKU
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:
- 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) (*CreateRewardCreated, *CreateRewardBadRequest, *CreateRewardNotFound, *CreateRewardConflict, *CreateRewardUnprocessableEntity, error) CreateRewardShort(params *CreateRewardParams, authInfo runtime.ClientAuthInfoWriter) (*CreateRewardCreated, 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><tr><td>34027</td><td>Reward Item [{sku}] 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 (o *CreateRewardBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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><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 (o *CreateRewardConflict) GetPayload() *platformclientmodels.ErrorEntity
func (*CreateRewardConflict) ToJSONString ¶ added in v0.25.0
func (o *CreateRewardConflict) ToJSONString() string
type CreateRewardCreated ¶ added in v0.74.0
type CreateRewardCreated struct {
Payload *platformclientmodels.RewardInfo
}
CreateRewardCreated handles this case with default header values.
successful operation
func NewCreateRewardCreated ¶ added in v0.74.0
func NewCreateRewardCreated() *CreateRewardCreated
NewCreateRewardCreated creates a CreateRewardCreated with default headers values
func (*CreateRewardCreated) Error ¶ added in v0.74.0
func (o *CreateRewardCreated) Error() string
func (*CreateRewardCreated) GetPayload ¶ added in v0.74.0
func (o *CreateRewardCreated) GetPayload() *platformclientmodels.RewardInfo
func (*CreateRewardCreated) ToJSONString ¶ added in v0.74.0
func (o *CreateRewardCreated) 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 (o *CreateRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*CreateRewardNotFound) ToJSONString ¶ added in v0.25.0
func (o *CreateRewardNotFound) ToJSONString() string
type CreateRewardParams ¶
type CreateRewardParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *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 ¶ added in v0.17.0
func (o *CreateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create reward params
func (*CreateRewardParams) SetBody ¶
func (o *CreateRewardParams) SetBody(body *platformclientmodels.RewardCreate)
SetBody adds the body to the create reward params
func (*CreateRewardParams) SetContext ¶
func (o *CreateRewardParams) SetContext(ctx context.Context)
SetContext adds the context to the create reward params
func (*CreateRewardParams) SetFlightId ¶ added in v0.63.0
func (o *CreateRewardParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*CreateRewardParams) SetHTTPClient ¶
func (o *CreateRewardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create reward params
func (*CreateRewardParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *CreateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create reward params
func (*CreateRewardParams) SetNamespace ¶
func (o *CreateRewardParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create reward params
func (*CreateRewardParams) SetTimeout ¶
func (o *CreateRewardParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create reward params
func (*CreateRewardParams) WithBody ¶
func (o *CreateRewardParams) WithBody(body *platformclientmodels.RewardCreate) *CreateRewardParams
WithBody adds the body to the create reward params
func (*CreateRewardParams) WithContext ¶
func (o *CreateRewardParams) WithContext(ctx context.Context) *CreateRewardParams
WithContext adds the context to the create reward params
func (*CreateRewardParams) WithHTTPClient ¶
func (o *CreateRewardParams) WithHTTPClient(client *http.Client) *CreateRewardParams
WithHTTPClient adds the HTTPClient to the create reward params
func (*CreateRewardParams) WithNamespace ¶
func (o *CreateRewardParams) WithNamespace(namespace string) *CreateRewardParams
WithNamespace adds the namespace to the create reward params
func (*CreateRewardParams) 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 (o *CreateRewardUnprocessableEntity) Error() string
func (*CreateRewardUnprocessableEntity) GetPayload ¶
func (o *CreateRewardUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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
func (o *DeleteRewardConditionRecordNoContent) Error() string
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 // 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 ¶ 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
func (o *DeleteRewardConditionRecordParams) SetBody(body *platformclientmodels.DeleteRewardConditionRequest)
SetBody adds the body to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) SetContext ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) SetContext(ctx context.Context)
SetContext adds the context to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) SetFlightId ¶ added in v0.63.0
func (o *DeleteRewardConditionRecordParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
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
func (o *DeleteRewardConditionRecordParams) WithBody(body *platformclientmodels.DeleteRewardConditionRequest) *DeleteRewardConditionRecordParams
WithBody adds the body to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WithContext ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WithContext(ctx context.Context) *DeleteRewardConditionRecordParams
WithContext adds the context to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WithHTTPClient ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WithHTTPClient(client *http.Client) *DeleteRewardConditionRecordParams
WithHTTPClient adds the HTTPClient to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WithNamespace ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WithNamespace(namespace string) *DeleteRewardConditionRecordParams
WithNamespace adds the namespace to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WithRewardID ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WithRewardID(rewardID string) *DeleteRewardConditionRecordParams
WithRewardID adds the rewardID to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WithTimeout ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WithTimeout(timeout time.Duration) *DeleteRewardConditionRecordParams
WithTimeout adds the timeout to the delete reward condition record params
func (*DeleteRewardConditionRecordParams) WriteToRequest ¶ added in v0.25.0
func (o *DeleteRewardConditionRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DeleteRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *DeleteRewardOK) GetPayload() *platformclientmodels.RewardInfo
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 // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
DeleteRewardParams contains all the parameters to send to the API endpoint for the delete reward operation typically these are written to a http.Request
func NewDeleteRewardParams ¶
func NewDeleteRewardParams() *DeleteRewardParams
NewDeleteRewardParams creates a new DeleteRewardParams object with the default values initialized.
func NewDeleteRewardParamsWithContext ¶
func NewDeleteRewardParamsWithContext(ctx context.Context) *DeleteRewardParams
NewDeleteRewardParamsWithContext creates a new DeleteRewardParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteRewardParamsWithHTTPClient ¶
func NewDeleteRewardParamsWithHTTPClient(client *http.Client) *DeleteRewardParams
NewDeleteRewardParamsWithHTTPClient creates a new DeleteRewardParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteRewardParamsWithTimeout ¶
func NewDeleteRewardParamsWithTimeout(timeout time.Duration) *DeleteRewardParams
NewDeleteRewardParamsWithTimeout creates a new DeleteRewardParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteRewardParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *DeleteRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the delete reward params
func (*DeleteRewardParams) SetContext ¶
func (o *DeleteRewardParams) SetContext(ctx context.Context)
SetContext adds the context to the delete reward params
func (*DeleteRewardParams) SetFlightId ¶ added in v0.63.0
func (o *DeleteRewardParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*DeleteRewardParams) SetHTTPClient ¶
func (o *DeleteRewardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete reward params
func (*DeleteRewardParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *DeleteRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the delete reward params
func (*DeleteRewardParams) SetNamespace ¶
func (o *DeleteRewardParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the delete reward params
func (*DeleteRewardParams) 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 ¶
func (o *DeleteRewardParams) WithContext(ctx context.Context) *DeleteRewardParams
WithContext adds the context to the delete reward params
func (*DeleteRewardParams) WithHTTPClient ¶
func (o *DeleteRewardParams) WithHTTPClient(client *http.Client) *DeleteRewardParams
WithHTTPClient adds the HTTPClient to the delete reward params
func (*DeleteRewardParams) WithNamespace ¶
func (o *DeleteRewardParams) WithNamespace(namespace string) *DeleteRewardParams
WithNamespace adds the namespace to the delete reward params
func (*DeleteRewardParams) 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 ¶
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 // 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 ¶ 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) SetFlightId ¶ added in v0.63.0
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 ¶ 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 ¶
func (o *ExportRewardsParams) WithContext(ctx context.Context) *ExportRewardsParams
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 (o *GetReward1NotFound) GetPayload() *platformclientmodels.ErrorEntity
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 // 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 ¶ 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) SetFlightId ¶ added in v0.63.0
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 ¶ 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 (o *GetRewardByCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *GetRewardByCodeOK) GetPayload() *platformclientmodels.RewardInfo
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 // 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 ¶ 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) SetFlightId ¶ added in v0.63.0
func (o *GetRewardByCodeParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
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
func (o *GetRewardByCodeParams) WithContext(ctx context.Context) *GetRewardByCodeParams
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 (o *GetRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
GetRewardParams contains all the parameters to send to the API endpoint for the get reward operation typically these are written to a http.Request
func NewGetRewardParams ¶
func NewGetRewardParams() *GetRewardParams
NewGetRewardParams creates a new GetRewardParams object with the default values initialized.
func NewGetRewardParamsWithContext ¶
func NewGetRewardParamsWithContext(ctx context.Context) *GetRewardParams
NewGetRewardParamsWithContext creates a new GetRewardParams object with the default values initialized, and the ability to set a context for a request
func NewGetRewardParamsWithHTTPClient ¶
func NewGetRewardParamsWithHTTPClient(client *http.Client) *GetRewardParams
NewGetRewardParamsWithHTTPClient creates a new GetRewardParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetRewardParamsWithTimeout ¶
func NewGetRewardParamsWithTimeout(timeout time.Duration) *GetRewardParams
NewGetRewardParamsWithTimeout creates a new GetRewardParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetRewardParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get reward params
func (*GetRewardParams) SetContext ¶
func (o *GetRewardParams) SetContext(ctx context.Context)
SetContext adds the context to the get reward params
func (*GetRewardParams) SetFlightId ¶ added in v0.63.0
func (o *GetRewardParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*GetRewardParams) SetHTTPClient ¶
func (o *GetRewardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get reward params
func (*GetRewardParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GetRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get reward params
func (*GetRewardParams) SetNamespace ¶
func (o *GetRewardParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get reward params
func (*GetRewardParams) 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 (o *ImportRewardsBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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><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 ¶ 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 (o *ImportRewardsConflict) GetPayload() *platformclientmodels.ErrorEntity
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 // 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 ¶ 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) SetFlightId ¶ added in v0.63.0
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 ¶ 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 ¶
func (o *ImportRewardsParams) WithContext(ctx context.Context) *ImportRewardsParams
WithContext adds the context to the import rewards params
func (*ImportRewardsParams) WithFile ¶
func (o *ImportRewardsParams) WithFile(file runtime.NamedReadCloser) *ImportRewardsParams
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 (o *QueryRewards1OK) GetPayload() *platformclientmodels.RewardPagingSlicedResult
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 // 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 ¶ 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) SetFlightId ¶ added in v0.63.0
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 ¶ 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 ¶
func (o *QueryRewards1Params) WithContext(ctx context.Context) *QueryRewards1Params
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 (o *QueryRewards1UnprocessableEntity) Error() string
func (*QueryRewards1UnprocessableEntity) GetPayload ¶
func (o *QueryRewards1UnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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 (o *QueryRewardsOK) GetPayload() *platformclientmodels.RewardPagingSlicedResult
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 // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
QueryRewardsParams contains all the parameters to send to the API endpoint for the query rewards operation typically these are written to a http.Request
func NewQueryRewardsParams ¶
func NewQueryRewardsParams() *QueryRewardsParams
NewQueryRewardsParams creates a new QueryRewardsParams object with the default values initialized.
func NewQueryRewardsParamsWithContext ¶
func NewQueryRewardsParamsWithContext(ctx context.Context) *QueryRewardsParams
NewQueryRewardsParamsWithContext creates a new QueryRewardsParams object with the default values initialized, and the ability to set a context for a request
func NewQueryRewardsParamsWithHTTPClient ¶
func NewQueryRewardsParamsWithHTTPClient(client *http.Client) *QueryRewardsParams
NewQueryRewardsParamsWithHTTPClient creates a new QueryRewardsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQueryRewardsParamsWithTimeout ¶
func NewQueryRewardsParamsWithTimeout(timeout time.Duration) *QueryRewardsParams
NewQueryRewardsParamsWithTimeout creates a new QueryRewardsParams object with the default values initialized, and the ability to set a timeout on a request
func (*QueryRewardsParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *QueryRewardsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the query rewards params
func (*QueryRewardsParams) SetContext ¶
func (o *QueryRewardsParams) SetContext(ctx context.Context)
SetContext adds the context to the query rewards params
func (*QueryRewardsParams) SetEventTopic ¶
func (o *QueryRewardsParams) SetEventTopic(eventTopic *string)
SetEventTopic adds the eventTopic to the query rewards params
func (*QueryRewardsParams) SetFlightId ¶ added in v0.63.0
func (o *QueryRewardsParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*QueryRewardsParams) SetHTTPClient ¶
func (o *QueryRewardsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query rewards params
func (*QueryRewardsParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *QueryRewardsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the query rewards params
func (*QueryRewardsParams) 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 ¶
func (o *QueryRewardsParams) WithContext(ctx context.Context) *QueryRewardsParams
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 (o *QueryRewardsUnprocessableEntity) Error() string
func (*QueryRewardsUnprocessableEntity) GetPayload ¶
func (o *QueryRewardsUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
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><tr><td>34027</td><td>Reward Item [{sku}] 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 (o *UpdateRewardBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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><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 (o *UpdateRewardConflict) GetPayload() *platformclientmodels.ErrorEntity
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><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 (o *UpdateRewardNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *UpdateRewardOK) GetPayload() *platformclientmodels.RewardInfo
func (*UpdateRewardOK) ToJSONString ¶ added in v0.25.0
func (o *UpdateRewardOK) ToJSONString() string
type UpdateRewardParams ¶
type UpdateRewardParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *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 ¶ added in v0.17.0
func (o *UpdateRewardParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update reward params
func (*UpdateRewardParams) SetBody ¶
func (o *UpdateRewardParams) SetBody(body *platformclientmodels.RewardUpdate)
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 ¶ added in v0.63.0
func (o *UpdateRewardParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*UpdateRewardParams) SetHTTPClient ¶
func (o *UpdateRewardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update reward params
func (*UpdateRewardParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *UpdateRewardParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update reward params
func (*UpdateRewardParams) SetNamespace ¶
func (o *UpdateRewardParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update reward params
func (*UpdateRewardParams) 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 ¶
func (o *UpdateRewardParams) WithBody(body *platformclientmodels.RewardUpdate) *UpdateRewardParams
WithBody adds the body to the update reward params
func (*UpdateRewardParams) WithContext ¶
func (o *UpdateRewardParams) WithContext(ctx context.Context) *UpdateRewardParams
WithContext adds the context to the update reward params
func (*UpdateRewardParams) WithHTTPClient ¶
func (o *UpdateRewardParams) WithHTTPClient(client *http.Client) *UpdateRewardParams
WithHTTPClient adds the HTTPClient to the update reward params
func (*UpdateRewardParams) WithNamespace ¶
func (o *UpdateRewardParams) WithNamespace(namespace string) *UpdateRewardParams
WithNamespace adds the namespace to the update reward params
func (*UpdateRewardParams) 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.
Source Files ¶
- check_event_condition_parameters.go
- check_event_condition_responses.go
- create_reward_parameters.go
- create_reward_responses.go
- delete_reward_condition_record_parameters.go
- delete_reward_condition_record_responses.go
- delete_reward_parameters.go
- delete_reward_responses.go
- export_rewards_parameters.go
- export_rewards_responses.go
- get_reward_1_parameters.go
- get_reward_1_responses.go
- get_reward_by_code_parameters.go
- get_reward_by_code_responses.go
- get_reward_parameters.go
- get_reward_responses.go
- import_rewards_parameters.go
- import_rewards_responses.go
- query_rewards_1_parameters.go
- query_rewards_1_responses.go
- query_rewards_parameters.go
- query_rewards_responses.go
- reward_client.go
- update_reward_parameters.go
- update_reward_responses.go