Documentation ¶
Index ¶
- type ApplyUserRedemptionConflict
- type ApplyUserRedemptionNotFound
- type ApplyUserRedemptionOK
- type ApplyUserRedemptionParams
- func NewApplyUserRedemptionParams() *ApplyUserRedemptionParams
- func NewApplyUserRedemptionParamsWithContext(ctx context.Context) *ApplyUserRedemptionParams
- func NewApplyUserRedemptionParamsWithHTTPClient(client *http.Client) *ApplyUserRedemptionParams
- func NewApplyUserRedemptionParamsWithTimeout(timeout time.Duration) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *ApplyUserRedemptionParams) SetBody(body *platformclientmodels.RedeemRequest)
- func (o *ApplyUserRedemptionParams) SetContext(ctx context.Context)
- func (o *ApplyUserRedemptionParams) SetHTTPClient(client *http.Client)
- func (o *ApplyUserRedemptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *ApplyUserRedemptionParams) SetNamespace(namespace string)
- func (o *ApplyUserRedemptionParams) SetTimeout(timeout time.Duration)
- func (o *ApplyUserRedemptionParams) SetUserID(userID string)
- func (o *ApplyUserRedemptionParams) WithBody(body *platformclientmodels.RedeemRequest) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WithContext(ctx context.Context) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WithHTTPClient(client *http.Client) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WithNamespace(namespace string) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WithTimeout(timeout time.Duration) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WithUserID(userID string) *ApplyUserRedemptionParams
- func (o *ApplyUserRedemptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ApplyUserRedemptionReader
- type ApplyUserRedemptionUnprocessableEntity
- type BulkDisableCodesOK
- type BulkDisableCodesParams
- func NewBulkDisableCodesParams() *BulkDisableCodesParams
- func NewBulkDisableCodesParamsWithContext(ctx context.Context) *BulkDisableCodesParams
- func NewBulkDisableCodesParamsWithHTTPClient(client *http.Client) *BulkDisableCodesParams
- func NewBulkDisableCodesParamsWithTimeout(timeout time.Duration) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *BulkDisableCodesParams) SetBatchNo(batchNo *int32)
- func (o *BulkDisableCodesParams) SetCampaignID(campaignID string)
- func (o *BulkDisableCodesParams) SetContext(ctx context.Context)
- func (o *BulkDisableCodesParams) SetHTTPClient(client *http.Client)
- func (o *BulkDisableCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *BulkDisableCodesParams) SetNamespace(namespace string)
- func (o *BulkDisableCodesParams) SetTimeout(timeout time.Duration)
- func (o *BulkDisableCodesParams) WithBatchNo(batchNo *int32) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WithCampaignID(campaignID string) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WithContext(ctx context.Context) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WithHTTPClient(client *http.Client) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WithNamespace(namespace string) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WithTimeout(timeout time.Duration) *BulkDisableCodesParams
- func (o *BulkDisableCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BulkDisableCodesReader
- type BulkEnableCodesOK
- type BulkEnableCodesParams
- func NewBulkEnableCodesParams() *BulkEnableCodesParams
- func NewBulkEnableCodesParamsWithContext(ctx context.Context) *BulkEnableCodesParams
- func NewBulkEnableCodesParamsWithHTTPClient(client *http.Client) *BulkEnableCodesParams
- func NewBulkEnableCodesParamsWithTimeout(timeout time.Duration) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *BulkEnableCodesParams) SetBatchNo(batchNo *int32)
- func (o *BulkEnableCodesParams) SetCampaignID(campaignID string)
- func (o *BulkEnableCodesParams) SetContext(ctx context.Context)
- func (o *BulkEnableCodesParams) SetHTTPClient(client *http.Client)
- func (o *BulkEnableCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *BulkEnableCodesParams) SetNamespace(namespace string)
- func (o *BulkEnableCodesParams) SetTimeout(timeout time.Duration)
- func (o *BulkEnableCodesParams) WithBatchNo(batchNo *int32) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WithCampaignID(campaignID string) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WithContext(ctx context.Context) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WithHTTPClient(client *http.Client) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WithNamespace(namespace string) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WithTimeout(timeout time.Duration) *BulkEnableCodesParams
- func (o *BulkEnableCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BulkEnableCodesReader
- type Client
- func (a *Client) ApplyUserRedemption(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, *ApplyUserRedemptionNotFound, ...)deprecated
- func (a *Client) ApplyUserRedemptionShort(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, error)
- func (a *Client) BulkDisableCodes(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)deprecated
- func (a *Client) BulkDisableCodesShort(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)
- func (a *Client) BulkEnableCodes(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)deprecated
- func (a *Client) BulkEnableCodesShort(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)
- func (a *Client) CreateCampaign(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, *CreateCampaignConflict, ...)deprecated
- func (a *Client) CreateCampaignShort(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, error)
- func (a *Client) CreateCodes(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, *CreateCodesNotFound, *CreateCodesUnprocessableEntity, ...)deprecated
- func (a *Client) CreateCodesShort(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, error)
- func (a *Client) DisableCode(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, *DisableCodeNotFound, error)deprecated
- func (a *Client) DisableCodeShort(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, error)
- func (a *Client) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DownloadOK, error)deprecated
- func (a *Client) DownloadShort(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DownloadOK, error)
- func (a *Client) EnableCode(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, *EnableCodeNotFound, error)deprecated
- func (a *Client) EnableCodeShort(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, error)
- func (a *Client) GetCampaign(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, *GetCampaignNotFound, error)deprecated
- func (a *Client) GetCampaignDynamic(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, *GetCampaignDynamicNotFound, error)deprecated
- func (a *Client) GetCampaignDynamicShort(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, error)
- func (a *Client) GetCampaignShort(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, error)
- func (a *Client) GetCode(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, *GetCodeNotFound, *GetCodeConflict, error)deprecated
- func (a *Client) GetCodeShort(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, error)
- func (a *Client) QueryCampaigns(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)deprecated
- func (a *Client) QueryCampaignsShort(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)
- func (a *Client) QueryCodes(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)deprecated
- func (a *Client) QueryCodesShort(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)
- func (a *Client) QueryRedeemHistory(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)deprecated
- func (a *Client) QueryRedeemHistoryShort(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCampaign(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, *UpdateCampaignNotFound, *UpdateCampaignConflict, ...)deprecated
- func (a *Client) UpdateCampaignShort(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, error)
- type ClientService
- type CreateCampaignConflict
- type CreateCampaignCreated
- type CreateCampaignParams
- func NewCreateCampaignParams() *CreateCampaignParams
- func NewCreateCampaignParamsWithContext(ctx context.Context) *CreateCampaignParams
- func NewCreateCampaignParamsWithHTTPClient(client *http.Client) *CreateCampaignParams
- func NewCreateCampaignParamsWithTimeout(timeout time.Duration) *CreateCampaignParams
- func (o *CreateCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateCampaignParams) SetBody(body *platformclientmodels.CampaignCreate)
- func (o *CreateCampaignParams) SetContext(ctx context.Context)
- func (o *CreateCampaignParams) SetHTTPClient(client *http.Client)
- func (o *CreateCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateCampaignParams) SetNamespace(namespace string)
- func (o *CreateCampaignParams) SetTimeout(timeout time.Duration)
- func (o *CreateCampaignParams) WithBody(body *platformclientmodels.CampaignCreate) *CreateCampaignParams
- func (o *CreateCampaignParams) WithContext(ctx context.Context) *CreateCampaignParams
- func (o *CreateCampaignParams) WithHTTPClient(client *http.Client) *CreateCampaignParams
- func (o *CreateCampaignParams) WithNamespace(namespace string) *CreateCampaignParams
- func (o *CreateCampaignParams) WithTimeout(timeout time.Duration) *CreateCampaignParams
- func (o *CreateCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCampaignReader
- type CreateCampaignUnprocessableEntity
- type CreateCodesCreated
- type CreateCodesNotFound
- type CreateCodesParams
- func (o *CreateCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *CreateCodesParams) SetBody(body *platformclientmodels.CodeCreate)
- func (o *CreateCodesParams) SetCampaignID(campaignID string)
- func (o *CreateCodesParams) SetContext(ctx context.Context)
- func (o *CreateCodesParams) SetHTTPClient(client *http.Client)
- func (o *CreateCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *CreateCodesParams) SetNamespace(namespace string)
- func (o *CreateCodesParams) SetTimeout(timeout time.Duration)
- func (o *CreateCodesParams) WithBody(body *platformclientmodels.CodeCreate) *CreateCodesParams
- func (o *CreateCodesParams) WithCampaignID(campaignID string) *CreateCodesParams
- func (o *CreateCodesParams) WithContext(ctx context.Context) *CreateCodesParams
- func (o *CreateCodesParams) WithHTTPClient(client *http.Client) *CreateCodesParams
- func (o *CreateCodesParams) WithNamespace(namespace string) *CreateCodesParams
- func (o *CreateCodesParams) WithTimeout(timeout time.Duration) *CreateCodesParams
- func (o *CreateCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCodesReader
- type CreateCodesUnprocessableEntity
- type DisableCodeNotFound
- type DisableCodeOK
- type DisableCodeParams
- func (o *DisableCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DisableCodeParams) SetCode(code string)
- func (o *DisableCodeParams) SetContext(ctx context.Context)
- func (o *DisableCodeParams) SetHTTPClient(client *http.Client)
- func (o *DisableCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DisableCodeParams) SetNamespace(namespace string)
- func (o *DisableCodeParams) SetTimeout(timeout time.Duration)
- func (o *DisableCodeParams) WithCode(code string) *DisableCodeParams
- func (o *DisableCodeParams) WithContext(ctx context.Context) *DisableCodeParams
- func (o *DisableCodeParams) WithHTTPClient(client *http.Client) *DisableCodeParams
- func (o *DisableCodeParams) WithNamespace(namespace string) *DisableCodeParams
- func (o *DisableCodeParams) WithTimeout(timeout time.Duration) *DisableCodeParams
- func (o *DisableCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DisableCodeReader
- type DownloadOK
- type DownloadParams
- func (o *DownloadParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *DownloadParams) SetBatchNo(batchNo *int32)
- func (o *DownloadParams) SetCampaignID(campaignID string)
- func (o *DownloadParams) SetContext(ctx context.Context)
- func (o *DownloadParams) SetHTTPClient(client *http.Client)
- func (o *DownloadParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *DownloadParams) SetNamespace(namespace string)
- func (o *DownloadParams) SetTimeout(timeout time.Duration)
- func (o *DownloadParams) WithBatchNo(batchNo *int32) *DownloadParams
- func (o *DownloadParams) WithCampaignID(campaignID string) *DownloadParams
- func (o *DownloadParams) WithContext(ctx context.Context) *DownloadParams
- func (o *DownloadParams) WithHTTPClient(client *http.Client) *DownloadParams
- func (o *DownloadParams) WithNamespace(namespace string) *DownloadParams
- func (o *DownloadParams) WithTimeout(timeout time.Duration) *DownloadParams
- func (o *DownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadReader
- type EnableCodeNotFound
- type EnableCodeOK
- type EnableCodeParams
- func (o *EnableCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *EnableCodeParams) SetCode(code string)
- func (o *EnableCodeParams) SetContext(ctx context.Context)
- func (o *EnableCodeParams) SetHTTPClient(client *http.Client)
- func (o *EnableCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *EnableCodeParams) SetNamespace(namespace string)
- func (o *EnableCodeParams) SetTimeout(timeout time.Duration)
- func (o *EnableCodeParams) WithCode(code string) *EnableCodeParams
- func (o *EnableCodeParams) WithContext(ctx context.Context) *EnableCodeParams
- func (o *EnableCodeParams) WithHTTPClient(client *http.Client) *EnableCodeParams
- func (o *EnableCodeParams) WithNamespace(namespace string) *EnableCodeParams
- func (o *EnableCodeParams) WithTimeout(timeout time.Duration) *EnableCodeParams
- func (o *EnableCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type EnableCodeReader
- type GetCampaignDynamicNotFound
- type GetCampaignDynamicOK
- type GetCampaignDynamicParams
- func NewGetCampaignDynamicParams() *GetCampaignDynamicParams
- func NewGetCampaignDynamicParamsWithContext(ctx context.Context) *GetCampaignDynamicParams
- func NewGetCampaignDynamicParamsWithHTTPClient(client *http.Client) *GetCampaignDynamicParams
- func NewGetCampaignDynamicParamsWithTimeout(timeout time.Duration) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetCampaignDynamicParams) SetCampaignID(campaignID string)
- func (o *GetCampaignDynamicParams) SetContext(ctx context.Context)
- func (o *GetCampaignDynamicParams) SetHTTPClient(client *http.Client)
- func (o *GetCampaignDynamicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetCampaignDynamicParams) SetNamespace(namespace string)
- func (o *GetCampaignDynamicParams) SetTimeout(timeout time.Duration)
- func (o *GetCampaignDynamicParams) WithCampaignID(campaignID string) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) WithContext(ctx context.Context) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) WithHTTPClient(client *http.Client) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) WithNamespace(namespace string) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) WithTimeout(timeout time.Duration) *GetCampaignDynamicParams
- func (o *GetCampaignDynamicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCampaignDynamicReader
- type GetCampaignNotFound
- type GetCampaignOK
- type GetCampaignParams
- func (o *GetCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetCampaignParams) SetCampaignID(campaignID string)
- func (o *GetCampaignParams) SetContext(ctx context.Context)
- func (o *GetCampaignParams) SetHTTPClient(client *http.Client)
- func (o *GetCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetCampaignParams) SetNamespace(namespace string)
- func (o *GetCampaignParams) SetTimeout(timeout time.Duration)
- func (o *GetCampaignParams) WithCampaignID(campaignID string) *GetCampaignParams
- func (o *GetCampaignParams) WithContext(ctx context.Context) *GetCampaignParams
- func (o *GetCampaignParams) WithHTTPClient(client *http.Client) *GetCampaignParams
- func (o *GetCampaignParams) WithNamespace(namespace string) *GetCampaignParams
- func (o *GetCampaignParams) WithTimeout(timeout time.Duration) *GetCampaignParams
- func (o *GetCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCampaignReader
- type GetCodeConflict
- type GetCodeNotFound
- type GetCodeOK
- type GetCodeParams
- func (o *GetCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetCodeParams) SetCode(code string)
- func (o *GetCodeParams) SetContext(ctx context.Context)
- func (o *GetCodeParams) SetHTTPClient(client *http.Client)
- func (o *GetCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetCodeParams) SetNamespace(namespace string)
- func (o *GetCodeParams) SetRedeemable(redeemable *bool)
- func (o *GetCodeParams) SetTimeout(timeout time.Duration)
- func (o *GetCodeParams) WithCode(code string) *GetCodeParams
- func (o *GetCodeParams) WithContext(ctx context.Context) *GetCodeParams
- func (o *GetCodeParams) WithHTTPClient(client *http.Client) *GetCodeParams
- func (o *GetCodeParams) WithNamespace(namespace string) *GetCodeParams
- func (o *GetCodeParams) WithRedeemable(redeemable *bool) *GetCodeParams
- func (o *GetCodeParams) WithTimeout(timeout time.Duration) *GetCodeParams
- func (o *GetCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCodeReader
- type QueryCampaignsOK
- type QueryCampaignsParams
- func NewQueryCampaignsParams() *QueryCampaignsParams
- func NewQueryCampaignsParamsWithContext(ctx context.Context) *QueryCampaignsParams
- func NewQueryCampaignsParamsWithHTTPClient(client *http.Client) *QueryCampaignsParams
- func NewQueryCampaignsParamsWithTimeout(timeout time.Duration) *QueryCampaignsParams
- func (o *QueryCampaignsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryCampaignsParams) SetContext(ctx context.Context)
- func (o *QueryCampaignsParams) SetHTTPClient(client *http.Client)
- func (o *QueryCampaignsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryCampaignsParams) SetLimit(limit *int32)
- func (o *QueryCampaignsParams) SetName(name *string)
- func (o *QueryCampaignsParams) SetNamespace(namespace string)
- func (o *QueryCampaignsParams) SetOffset(offset *int32)
- func (o *QueryCampaignsParams) SetTag(tag *string)
- func (o *QueryCampaignsParams) SetTimeout(timeout time.Duration)
- func (o *QueryCampaignsParams) WithContext(ctx context.Context) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithHTTPClient(client *http.Client) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithLimit(limit *int32) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithName(name *string) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithNamespace(namespace string) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithOffset(offset *int32) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithTag(tag *string) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WithTimeout(timeout time.Duration) *QueryCampaignsParams
- func (o *QueryCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryCampaignsReader
- type QueryCodesOK
- type QueryCodesParams
- func (o *QueryCodesParams) SetActiveOnly(activeOnly *bool)
- func (o *QueryCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryCodesParams) SetBatchNo(batchNo *int32)
- func (o *QueryCodesParams) SetCampaignID(campaignID string)
- func (o *QueryCodesParams) SetCode(code *string)
- func (o *QueryCodesParams) SetContext(ctx context.Context)
- func (o *QueryCodesParams) SetHTTPClient(client *http.Client)
- func (o *QueryCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryCodesParams) SetLimit(limit *int32)
- func (o *QueryCodesParams) SetNamespace(namespace string)
- func (o *QueryCodesParams) SetOffset(offset *int32)
- func (o *QueryCodesParams) SetTimeout(timeout time.Duration)
- func (o *QueryCodesParams) WithActiveOnly(activeOnly *bool) *QueryCodesParams
- func (o *QueryCodesParams) WithBatchNo(batchNo *int32) *QueryCodesParams
- func (o *QueryCodesParams) WithCampaignID(campaignID string) *QueryCodesParams
- func (o *QueryCodesParams) WithCode(code *string) *QueryCodesParams
- func (o *QueryCodesParams) WithContext(ctx context.Context) *QueryCodesParams
- func (o *QueryCodesParams) WithHTTPClient(client *http.Client) *QueryCodesParams
- func (o *QueryCodesParams) WithLimit(limit *int32) *QueryCodesParams
- func (o *QueryCodesParams) WithNamespace(namespace string) *QueryCodesParams
- func (o *QueryCodesParams) WithOffset(offset *int32) *QueryCodesParams
- func (o *QueryCodesParams) WithTimeout(timeout time.Duration) *QueryCodesParams
- func (o *QueryCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryCodesReader
- type QueryRedeemHistoryOK
- type QueryRedeemHistoryParams
- func NewQueryRedeemHistoryParams() *QueryRedeemHistoryParams
- func NewQueryRedeemHistoryParamsWithContext(ctx context.Context) *QueryRedeemHistoryParams
- func NewQueryRedeemHistoryParamsWithHTTPClient(client *http.Client) *QueryRedeemHistoryParams
- func NewQueryRedeemHistoryParamsWithTimeout(timeout time.Duration) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *QueryRedeemHistoryParams) SetCampaignID(campaignID string)
- func (o *QueryRedeemHistoryParams) SetCode(code *string)
- func (o *QueryRedeemHistoryParams) SetContext(ctx context.Context)
- func (o *QueryRedeemHistoryParams) SetHTTPClient(client *http.Client)
- func (o *QueryRedeemHistoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *QueryRedeemHistoryParams) SetLimit(limit *int32)
- func (o *QueryRedeemHistoryParams) SetNamespace(namespace string)
- func (o *QueryRedeemHistoryParams) SetOffset(offset *int32)
- func (o *QueryRedeemHistoryParams) SetTimeout(timeout time.Duration)
- func (o *QueryRedeemHistoryParams) SetUserID(userID *string)
- func (o *QueryRedeemHistoryParams) WithCampaignID(campaignID string) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithCode(code *string) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithContext(ctx context.Context) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithHTTPClient(client *http.Client) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithLimit(limit *int32) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithNamespace(namespace string) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithOffset(offset *int32) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithTimeout(timeout time.Duration) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WithUserID(userID *string) *QueryRedeemHistoryParams
- func (o *QueryRedeemHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryRedeemHistoryReader
- type UpdateCampaignConflict
- type UpdateCampaignNotFound
- type UpdateCampaignOK
- type UpdateCampaignParams
- func NewUpdateCampaignParams() *UpdateCampaignParams
- func NewUpdateCampaignParamsWithContext(ctx context.Context) *UpdateCampaignParams
- func NewUpdateCampaignParamsWithHTTPClient(client *http.Client) *UpdateCampaignParams
- func NewUpdateCampaignParamsWithTimeout(timeout time.Duration) *UpdateCampaignParams
- func (o *UpdateCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *UpdateCampaignParams) SetBody(body *platformclientmodels.CampaignUpdate)
- func (o *UpdateCampaignParams) SetCampaignID(campaignID string)
- func (o *UpdateCampaignParams) SetContext(ctx context.Context)
- func (o *UpdateCampaignParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *UpdateCampaignParams) SetNamespace(namespace string)
- func (o *UpdateCampaignParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCampaignParams) WithBody(body *platformclientmodels.CampaignUpdate) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WithCampaignID(campaignID string) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WithContext(ctx context.Context) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WithHTTPClient(client *http.Client) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WithNamespace(namespace string) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WithTimeout(timeout time.Duration) *UpdateCampaignParams
- func (o *UpdateCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCampaignReader
- type UpdateCampaignUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplyUserRedemptionConflict ¶
type ApplyUserRedemptionConflict struct {
Payload *platformclientmodels.ErrorEntity
}
ApplyUserRedemptionConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37175</td><td>Exceeded max redeem count per code per user [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr></table>
func NewApplyUserRedemptionConflict ¶
func NewApplyUserRedemptionConflict() *ApplyUserRedemptionConflict
NewApplyUserRedemptionConflict creates a ApplyUserRedemptionConflict with default headers values
func (*ApplyUserRedemptionConflict) Error ¶
func (o *ApplyUserRedemptionConflict) Error() string
func (*ApplyUserRedemptionConflict) GetPayload ¶
func (o *ApplyUserRedemptionConflict) GetPayload() *platformclientmodels.ErrorEntity
func (*ApplyUserRedemptionConflict) ToJSONString ¶ added in v0.25.0
func (o *ApplyUserRedemptionConflict) ToJSONString() string
type ApplyUserRedemptionNotFound ¶
type ApplyUserRedemptionNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
ApplyUserRedemptionNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>
func NewApplyUserRedemptionNotFound ¶
func NewApplyUserRedemptionNotFound() *ApplyUserRedemptionNotFound
NewApplyUserRedemptionNotFound creates a ApplyUserRedemptionNotFound with default headers values
func (*ApplyUserRedemptionNotFound) Error ¶
func (o *ApplyUserRedemptionNotFound) Error() string
func (*ApplyUserRedemptionNotFound) GetPayload ¶
func (o *ApplyUserRedemptionNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*ApplyUserRedemptionNotFound) ToJSONString ¶ added in v0.25.0
func (o *ApplyUserRedemptionNotFound) ToJSONString() string
type ApplyUserRedemptionOK ¶
type ApplyUserRedemptionOK struct {
Payload *platformclientmodels.RedeemResult
}
ApplyUserRedemptionOK handles this case with default header values.
successful operation
func NewApplyUserRedemptionOK ¶
func NewApplyUserRedemptionOK() *ApplyUserRedemptionOK
NewApplyUserRedemptionOK creates a ApplyUserRedemptionOK with default headers values
func (*ApplyUserRedemptionOK) Error ¶
func (o *ApplyUserRedemptionOK) Error() string
func (*ApplyUserRedemptionOK) GetPayload ¶
func (o *ApplyUserRedemptionOK) GetPayload() *platformclientmodels.RedeemResult
func (*ApplyUserRedemptionOK) ToJSONString ¶ added in v0.25.0
func (o *ApplyUserRedemptionOK) ToJSONString() string
type ApplyUserRedemptionParams ¶
type ApplyUserRedemptionParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *platformclientmodels.RedeemRequest /*Namespace*/ Namespace string /*UserID*/ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ApplyUserRedemptionParams contains all the parameters to send to the API endpoint for the apply user redemption operation typically these are written to a http.Request
func NewApplyUserRedemptionParams ¶
func NewApplyUserRedemptionParams() *ApplyUserRedemptionParams
NewApplyUserRedemptionParams creates a new ApplyUserRedemptionParams object with the default values initialized.
func NewApplyUserRedemptionParamsWithContext ¶
func NewApplyUserRedemptionParamsWithContext(ctx context.Context) *ApplyUserRedemptionParams
NewApplyUserRedemptionParamsWithContext creates a new ApplyUserRedemptionParams object with the default values initialized, and the ability to set a context for a request
func NewApplyUserRedemptionParamsWithHTTPClient ¶
func NewApplyUserRedemptionParamsWithHTTPClient(client *http.Client) *ApplyUserRedemptionParams
NewApplyUserRedemptionParamsWithHTTPClient creates a new ApplyUserRedemptionParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewApplyUserRedemptionParamsWithTimeout ¶
func NewApplyUserRedemptionParamsWithTimeout(timeout time.Duration) *ApplyUserRedemptionParams
NewApplyUserRedemptionParamsWithTimeout creates a new ApplyUserRedemptionParams object with the default values initialized, and the ability to set a timeout on a request
func (*ApplyUserRedemptionParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *ApplyUserRedemptionParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the apply user redemption params
func (*ApplyUserRedemptionParams) SetBody ¶
func (o *ApplyUserRedemptionParams) SetBody(body *platformclientmodels.RedeemRequest)
SetBody adds the body to the apply user redemption params
func (*ApplyUserRedemptionParams) SetContext ¶
func (o *ApplyUserRedemptionParams) SetContext(ctx context.Context)
SetContext adds the context to the apply user redemption params
func (*ApplyUserRedemptionParams) SetHTTPClient ¶
func (o *ApplyUserRedemptionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the apply user redemption params
func (*ApplyUserRedemptionParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *ApplyUserRedemptionParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the apply user redemption params
func (*ApplyUserRedemptionParams) SetNamespace ¶
func (o *ApplyUserRedemptionParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the apply user redemption params
func (*ApplyUserRedemptionParams) SetTimeout ¶
func (o *ApplyUserRedemptionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the apply user redemption params
func (*ApplyUserRedemptionParams) SetUserID ¶
func (o *ApplyUserRedemptionParams) SetUserID(userID string)
SetUserID adds the userId to the apply user redemption params
func (*ApplyUserRedemptionParams) WithBody ¶
func (o *ApplyUserRedemptionParams) WithBody(body *platformclientmodels.RedeemRequest) *ApplyUserRedemptionParams
WithBody adds the body to the apply user redemption params
func (*ApplyUserRedemptionParams) WithContext ¶
func (o *ApplyUserRedemptionParams) WithContext(ctx context.Context) *ApplyUserRedemptionParams
WithContext adds the context to the apply user redemption params
func (*ApplyUserRedemptionParams) WithHTTPClient ¶
func (o *ApplyUserRedemptionParams) WithHTTPClient(client *http.Client) *ApplyUserRedemptionParams
WithHTTPClient adds the HTTPClient to the apply user redemption params
func (*ApplyUserRedemptionParams) WithNamespace ¶
func (o *ApplyUserRedemptionParams) WithNamespace(namespace string) *ApplyUserRedemptionParams
WithNamespace adds the namespace to the apply user redemption params
func (*ApplyUserRedemptionParams) WithTimeout ¶
func (o *ApplyUserRedemptionParams) WithTimeout(timeout time.Duration) *ApplyUserRedemptionParams
WithTimeout adds the timeout to the apply user redemption params
func (*ApplyUserRedemptionParams) WithUserID ¶
func (o *ApplyUserRedemptionParams) WithUserID(userID string) *ApplyUserRedemptionParams
WithUserID adds the userID to the apply user redemption params
func (*ApplyUserRedemptionParams) WriteToRequest ¶
func (o *ApplyUserRedemptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ApplyUserRedemptionReader ¶
type ApplyUserRedemptionReader struct {
// contains filtered or unexported fields
}
ApplyUserRedemptionReader is a Reader for the ApplyUserRedemption structure.
func (*ApplyUserRedemptionReader) ReadResponse ¶
func (o *ApplyUserRedemptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ApplyUserRedemptionUnprocessableEntity ¶
type ApplyUserRedemptionUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
ApplyUserRedemptionUnprocessableEntity 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 NewApplyUserRedemptionUnprocessableEntity ¶
func NewApplyUserRedemptionUnprocessableEntity() *ApplyUserRedemptionUnprocessableEntity
NewApplyUserRedemptionUnprocessableEntity creates a ApplyUserRedemptionUnprocessableEntity with default headers values
func (*ApplyUserRedemptionUnprocessableEntity) Error ¶
func (o *ApplyUserRedemptionUnprocessableEntity) Error() string
func (*ApplyUserRedemptionUnprocessableEntity) GetPayload ¶
func (o *ApplyUserRedemptionUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*ApplyUserRedemptionUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *ApplyUserRedemptionUnprocessableEntity) ToJSONString() string
type BulkDisableCodesOK ¶
type BulkDisableCodesOK struct {
Payload *platformclientmodels.BulkOperationResult
}
BulkDisableCodesOK handles this case with default header values.
successful operation
func NewBulkDisableCodesOK ¶
func NewBulkDisableCodesOK() *BulkDisableCodesOK
NewBulkDisableCodesOK creates a BulkDisableCodesOK with default headers values
func (*BulkDisableCodesOK) Error ¶
func (o *BulkDisableCodesOK) Error() string
func (*BulkDisableCodesOK) GetPayload ¶
func (o *BulkDisableCodesOK) GetPayload() *platformclientmodels.BulkOperationResult
func (*BulkDisableCodesOK) ToJSONString ¶ added in v0.25.0
func (o *BulkDisableCodesOK) ToJSONString() string
type BulkDisableCodesParams ¶
type BulkDisableCodesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string /*BatchNo if not present will match all except 0 */ BatchNo *int32 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BulkDisableCodesParams contains all the parameters to send to the API endpoint for the bulk disable codes operation typically these are written to a http.Request
func NewBulkDisableCodesParams ¶
func NewBulkDisableCodesParams() *BulkDisableCodesParams
NewBulkDisableCodesParams creates a new BulkDisableCodesParams object with the default values initialized.
func NewBulkDisableCodesParamsWithContext ¶
func NewBulkDisableCodesParamsWithContext(ctx context.Context) *BulkDisableCodesParams
NewBulkDisableCodesParamsWithContext creates a new BulkDisableCodesParams object with the default values initialized, and the ability to set a context for a request
func NewBulkDisableCodesParamsWithHTTPClient ¶
func NewBulkDisableCodesParamsWithHTTPClient(client *http.Client) *BulkDisableCodesParams
NewBulkDisableCodesParamsWithHTTPClient creates a new BulkDisableCodesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBulkDisableCodesParamsWithTimeout ¶
func NewBulkDisableCodesParamsWithTimeout(timeout time.Duration) *BulkDisableCodesParams
NewBulkDisableCodesParamsWithTimeout creates a new BulkDisableCodesParams object with the default values initialized, and the ability to set a timeout on a request
func (*BulkDisableCodesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *BulkDisableCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the bulk disable codes params
func (*BulkDisableCodesParams) SetBatchNo ¶
func (o *BulkDisableCodesParams) SetBatchNo(batchNo *int32)
SetBatchNo adds the batchNo to the bulk disable codes params
func (*BulkDisableCodesParams) SetCampaignID ¶
func (o *BulkDisableCodesParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the bulk disable codes params
func (*BulkDisableCodesParams) SetContext ¶
func (o *BulkDisableCodesParams) SetContext(ctx context.Context)
SetContext adds the context to the bulk disable codes params
func (*BulkDisableCodesParams) SetHTTPClient ¶
func (o *BulkDisableCodesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the bulk disable codes params
func (*BulkDisableCodesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *BulkDisableCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the bulk disable codes params
func (*BulkDisableCodesParams) SetNamespace ¶
func (o *BulkDisableCodesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the bulk disable codes params
func (*BulkDisableCodesParams) SetTimeout ¶
func (o *BulkDisableCodesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the bulk disable codes params
func (*BulkDisableCodesParams) WithBatchNo ¶
func (o *BulkDisableCodesParams) WithBatchNo(batchNo *int32) *BulkDisableCodesParams
WithBatchNo adds the batchNo to the bulk disable codes params
func (*BulkDisableCodesParams) WithCampaignID ¶
func (o *BulkDisableCodesParams) WithCampaignID(campaignID string) *BulkDisableCodesParams
WithCampaignID adds the campaignID to the bulk disable codes params
func (*BulkDisableCodesParams) WithContext ¶
func (o *BulkDisableCodesParams) WithContext(ctx context.Context) *BulkDisableCodesParams
WithContext adds the context to the bulk disable codes params
func (*BulkDisableCodesParams) WithHTTPClient ¶
func (o *BulkDisableCodesParams) WithHTTPClient(client *http.Client) *BulkDisableCodesParams
WithHTTPClient adds the HTTPClient to the bulk disable codes params
func (*BulkDisableCodesParams) WithNamespace ¶
func (o *BulkDisableCodesParams) WithNamespace(namespace string) *BulkDisableCodesParams
WithNamespace adds the namespace to the bulk disable codes params
func (*BulkDisableCodesParams) WithTimeout ¶
func (o *BulkDisableCodesParams) WithTimeout(timeout time.Duration) *BulkDisableCodesParams
WithTimeout adds the timeout to the bulk disable codes params
func (*BulkDisableCodesParams) WriteToRequest ¶
func (o *BulkDisableCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BulkDisableCodesReader ¶
type BulkDisableCodesReader struct {
// contains filtered or unexported fields
}
BulkDisableCodesReader is a Reader for the BulkDisableCodes structure.
func (*BulkDisableCodesReader) ReadResponse ¶
func (o *BulkDisableCodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BulkEnableCodesOK ¶
type BulkEnableCodesOK struct {
Payload *platformclientmodels.BulkOperationResult
}
BulkEnableCodesOK handles this case with default header values.
successful operation
func NewBulkEnableCodesOK ¶
func NewBulkEnableCodesOK() *BulkEnableCodesOK
NewBulkEnableCodesOK creates a BulkEnableCodesOK with default headers values
func (*BulkEnableCodesOK) Error ¶
func (o *BulkEnableCodesOK) Error() string
func (*BulkEnableCodesOK) GetPayload ¶
func (o *BulkEnableCodesOK) GetPayload() *platformclientmodels.BulkOperationResult
func (*BulkEnableCodesOK) ToJSONString ¶ added in v0.25.0
func (o *BulkEnableCodesOK) ToJSONString() string
type BulkEnableCodesParams ¶
type BulkEnableCodesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string /*BatchNo if not present will match all except 0 */ BatchNo *int32 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BulkEnableCodesParams contains all the parameters to send to the API endpoint for the bulk enable codes operation typically these are written to a http.Request
func NewBulkEnableCodesParams ¶
func NewBulkEnableCodesParams() *BulkEnableCodesParams
NewBulkEnableCodesParams creates a new BulkEnableCodesParams object with the default values initialized.
func NewBulkEnableCodesParamsWithContext ¶
func NewBulkEnableCodesParamsWithContext(ctx context.Context) *BulkEnableCodesParams
NewBulkEnableCodesParamsWithContext creates a new BulkEnableCodesParams object with the default values initialized, and the ability to set a context for a request
func NewBulkEnableCodesParamsWithHTTPClient ¶
func NewBulkEnableCodesParamsWithHTTPClient(client *http.Client) *BulkEnableCodesParams
NewBulkEnableCodesParamsWithHTTPClient creates a new BulkEnableCodesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBulkEnableCodesParamsWithTimeout ¶
func NewBulkEnableCodesParamsWithTimeout(timeout time.Duration) *BulkEnableCodesParams
NewBulkEnableCodesParamsWithTimeout creates a new BulkEnableCodesParams object with the default values initialized, and the ability to set a timeout on a request
func (*BulkEnableCodesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *BulkEnableCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the bulk enable codes params
func (*BulkEnableCodesParams) SetBatchNo ¶
func (o *BulkEnableCodesParams) SetBatchNo(batchNo *int32)
SetBatchNo adds the batchNo to the bulk enable codes params
func (*BulkEnableCodesParams) SetCampaignID ¶
func (o *BulkEnableCodesParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the bulk enable codes params
func (*BulkEnableCodesParams) SetContext ¶
func (o *BulkEnableCodesParams) SetContext(ctx context.Context)
SetContext adds the context to the bulk enable codes params
func (*BulkEnableCodesParams) SetHTTPClient ¶
func (o *BulkEnableCodesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the bulk enable codes params
func (*BulkEnableCodesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *BulkEnableCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the bulk enable codes params
func (*BulkEnableCodesParams) SetNamespace ¶
func (o *BulkEnableCodesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the bulk enable codes params
func (*BulkEnableCodesParams) SetTimeout ¶
func (o *BulkEnableCodesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the bulk enable codes params
func (*BulkEnableCodesParams) WithBatchNo ¶
func (o *BulkEnableCodesParams) WithBatchNo(batchNo *int32) *BulkEnableCodesParams
WithBatchNo adds the batchNo to the bulk enable codes params
func (*BulkEnableCodesParams) WithCampaignID ¶
func (o *BulkEnableCodesParams) WithCampaignID(campaignID string) *BulkEnableCodesParams
WithCampaignID adds the campaignID to the bulk enable codes params
func (*BulkEnableCodesParams) WithContext ¶
func (o *BulkEnableCodesParams) WithContext(ctx context.Context) *BulkEnableCodesParams
WithContext adds the context to the bulk enable codes params
func (*BulkEnableCodesParams) WithHTTPClient ¶
func (o *BulkEnableCodesParams) WithHTTPClient(client *http.Client) *BulkEnableCodesParams
WithHTTPClient adds the HTTPClient to the bulk enable codes params
func (*BulkEnableCodesParams) WithNamespace ¶
func (o *BulkEnableCodesParams) WithNamespace(namespace string) *BulkEnableCodesParams
WithNamespace adds the namespace to the bulk enable codes params
func (*BulkEnableCodesParams) WithTimeout ¶
func (o *BulkEnableCodesParams) WithTimeout(timeout time.Duration) *BulkEnableCodesParams
WithTimeout adds the timeout to the bulk enable codes params
func (*BulkEnableCodesParams) WriteToRequest ¶
func (o *BulkEnableCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BulkEnableCodesReader ¶
type BulkEnableCodesReader struct {
// contains filtered or unexported fields
}
BulkEnableCodesReader is a Reader for the BulkEnableCodes structure.
func (*BulkEnableCodesReader) ReadResponse ¶
func (o *BulkEnableCodesReader) 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 campaign API
func (*Client) ApplyUserRedemption
deprecated
func (a *Client) ApplyUserRedemption(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, *ApplyUserRedemptionNotFound, *ApplyUserRedemptionConflict, *ApplyUserRedemptionUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use ApplyUserRedemptionShort instead.
ApplyUserRedemption redeem code
[SERVICE COMMUNICATION ONLY] Redeem code. If the campaign which the code belongs to is INACTIVE, the code couldn't be redeemed even if its status is ACTIVE.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:REDEMPTION", action=1 (CREATE)
- Returns : Redeem result
func (*Client) ApplyUserRedemptionShort ¶ added in v0.8.0
func (a *Client) ApplyUserRedemptionShort(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, error)
ApplyUserRedemptionShort redeem code
[SERVICE COMMUNICATION ONLY] Redeem code. If the campaign which the code belongs to is INACTIVE, the code couldn't be redeemed even if its status is ACTIVE.
Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:REDEMPTION", action=1 (CREATE)
- Returns : Redeem result
func (*Client) BulkDisableCodes
deprecated
func (a *Client) BulkDisableCodes(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)
Deprecated: 2022-08-10 - Use BulkDisableCodesShort instead.
BulkDisableCodes bulk disable codes Bulk disable codes.
Bulk disable campaign codes, all matched codes will be disabled except those have already been redeemed. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : the number of code actually disabled
func (*Client) BulkDisableCodesShort ¶ added in v0.8.0
func (a *Client) BulkDisableCodesShort(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error)
BulkDisableCodesShort bulk disable codes Bulk disable codes.
Bulk disable campaign codes, all matched codes will be disabled except those have already been redeemed. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : the number of code actually disabled
func (*Client) BulkEnableCodes
deprecated
func (a *Client) BulkEnableCodes(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)
Deprecated: 2022-08-10 - Use BulkEnableCodesShort instead.
BulkEnableCodes bulk enable codes Bulk enable campaign codes. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : the number of code actually enabled
func (*Client) BulkEnableCodesShort ¶ added in v0.8.0
func (a *Client) BulkEnableCodesShort(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error)
BulkEnableCodesShort bulk enable codes Bulk enable campaign codes. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : the number of code actually enabled
func (*Client) CreateCampaign
deprecated
func (a *Client) CreateCampaign(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, *CreateCampaignConflict, *CreateCampaignUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use CreateCampaignShort instead.
CreateCampaign create campaign Create campaign. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=1 (CREATE)
- Returns : created campaign
func (*Client) CreateCampaignShort ¶ added in v0.8.0
func (a *Client) CreateCampaignShort(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, error)
CreateCampaignShort create campaign Create campaign. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=1 (CREATE)
- Returns : created campaign
func (*Client) CreateCodes
deprecated
func (a *Client) CreateCodes(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, *CreateCodesNotFound, *CreateCodesUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use CreateCodesShort instead.
CreateCodes create campaign codes This API is used to create campaign codes, it will increase the batch No. based on last creation. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=1 (CREATE)
- Returns : number of codes created
func (*Client) CreateCodesShort ¶ added in v0.8.0
func (a *Client) CreateCodesShort(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, error)
CreateCodesShort create campaign codes This API is used to create campaign codes, it will increase the batch No. based on last creation. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=1 (CREATE)
- Returns : number of codes created
func (*Client) DisableCode
deprecated
func (a *Client) DisableCode(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, *DisableCodeNotFound, error)
Deprecated: 2022-08-10 - Use DisableCodeShort instead.
DisableCode disable code Disable code.
Disable an active code, the code can't be disabled if it has already been redeemed. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : disabled code
func (*Client) DisableCodeShort ¶ added in v0.8.0
func (a *Client) DisableCodeShort(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, error)
DisableCodeShort disable code Disable code.
Disable an active code, the code can't be disabled if it has already been redeemed. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : disabled code
func (*Client) Download
deprecated
func (a *Client) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)
Deprecated: 2022-08-10 - Use DownloadShort instead.
Download download codes Download all or a batch of campaign's codes as a csv file. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : codes csv file
func (*Client) DownloadShort ¶ added in v0.8.0
func (a *Client) DownloadShort(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error)
DownloadShort download codes Download all or a batch of campaign's codes as a csv file. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : codes csv file
func (*Client) EnableCode
deprecated
func (a *Client) EnableCode(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, *EnableCodeNotFound, error)
Deprecated: 2022-08-10 - Use EnableCodeShort instead.
EnableCode enable code Enable code. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : enabled code
func (*Client) EnableCodeShort ¶ added in v0.8.0
func (a *Client) EnableCodeShort(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, error)
EnableCodeShort enable code Enable code. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : enabled code
func (*Client) GetCampaign
deprecated
func (a *Client) GetCampaign(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, *GetCampaignNotFound, error)
Deprecated: 2022-08-10 - Use GetCampaignShort instead.
GetCampaign get campaign Get campaign info. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : campaign info
func (*Client) GetCampaignDynamic
deprecated
func (a *Client) GetCampaignDynamic(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, *GetCampaignDynamicNotFound, error)
Deprecated: 2022-08-10 - Use GetCampaignDynamicShort instead.
GetCampaignDynamic get campaign dynamic Get campaign dynamic. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : campaign dynamic
func (*Client) GetCampaignDynamicShort ¶ added in v0.8.0
func (a *Client) GetCampaignDynamicShort(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, error)
GetCampaignDynamicShort get campaign dynamic Get campaign dynamic. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : campaign dynamic
func (*Client) GetCampaignShort ¶ added in v0.8.0
func (a *Client) GetCampaignShort(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, error)
GetCampaignShort get campaign Get campaign info. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : campaign info
func (*Client) GetCode
deprecated
func (a *Client) GetCode(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, *GetCodeNotFound, *GetCodeConflict, error)
Deprecated: 2022-08-10 - Use GetCodeShort instead.
GetCode get code info Get campaign code, it will check code whether available to redeem if redeemable true. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : code info
func (*Client) GetCodeShort ¶ added in v0.8.0
func (a *Client) GetCodeShort(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, error)
GetCodeShort get code info Get campaign code, it will check code whether available to redeem if redeemable true. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : code info
func (*Client) QueryCampaigns
deprecated
func (a *Client) QueryCampaigns(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)
Deprecated: 2022-08-10 - Use QueryCampaignsShort instead.
QueryCampaigns query campaigns Query campaigns, if name is presented, it's fuzzy match. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : slice of campaigns
func (*Client) QueryCampaignsShort ¶ added in v0.8.0
func (a *Client) QueryCampaignsShort(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error)
QueryCampaignsShort query campaigns Query campaigns, if name is presented, it's fuzzy match. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : slice of campaigns
func (*Client) QueryCodes
deprecated
func (a *Client) QueryCodes(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)
Deprecated: 2022-08-10 - Use QueryCodesShort instead.
QueryCodes query codes Query campaign codes. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : list of codes
func (*Client) QueryCodesShort ¶ added in v0.8.0
func (a *Client) QueryCodesShort(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error)
QueryCodesShort query codes Query campaign codes. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ) (READ)
- Returns : list of codes
func (*Client) QueryRedeemHistory
deprecated
func (a *Client) QueryRedeemHistory(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)
Deprecated: 2022-08-10 - Use QueryRedeemHistoryShort instead.
QueryRedeemHistory query redeem history Query redeem history. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : slice of redeem history
func (*Client) QueryRedeemHistoryShort ¶ added in v0.8.0
func (a *Client) QueryRedeemHistoryShort(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error)
QueryRedeemHistoryShort query redeem history Query redeem history. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=2 (READ)
- Returns : slice of redeem history
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateCampaign
deprecated
func (a *Client) UpdateCampaign(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, *UpdateCampaignNotFound, *UpdateCampaignConflict, *UpdateCampaignUnprocessableEntity, error)
Deprecated: 2022-08-10 - Use UpdateCampaignShort instead.
UpdateCampaign update campaign Update campaign. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : updated campaign
func (*Client) UpdateCampaignShort ¶ added in v0.8.0
func (a *Client) UpdateCampaignShort(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, error)
UpdateCampaignShort update campaign Update campaign. Other detail info:
- Required permission : resource="ADMIN:NAMESPACE:{namespace}:CAMPAIGN", action=4 (UPDATE)
- Returns : updated campaign
type ClientService ¶
type ClientService interface { QueryCampaigns(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error) QueryCampaignsShort(params *QueryCampaignsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCampaignsOK, error) CreateCampaign(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, *CreateCampaignConflict, *CreateCampaignUnprocessableEntity, error) CreateCampaignShort(params *CreateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCampaignCreated, error) GetCampaign(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, *GetCampaignNotFound, error) GetCampaignShort(params *GetCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignOK, error) UpdateCampaign(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, *UpdateCampaignNotFound, *UpdateCampaignConflict, *UpdateCampaignUnprocessableEntity, error) UpdateCampaignShort(params *UpdateCampaignParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCampaignOK, error) GetCampaignDynamic(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, *GetCampaignDynamicNotFound, error) GetCampaignDynamicShort(params *GetCampaignDynamicParams, authInfo runtime.ClientAuthInfoWriter) (*GetCampaignDynamicOK, error) QueryCodes(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error) QueryCodesShort(params *QueryCodesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryCodesOK, error) CreateCodes(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, *CreateCodesNotFound, *CreateCodesUnprocessableEntity, error) CreateCodesShort(params *CreateCodesParams, authInfo runtime.ClientAuthInfoWriter) (*CreateCodesCreated, error) Download(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error) DownloadShort(params *DownloadParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadOK, error) BulkDisableCodes(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error) BulkDisableCodesShort(params *BulkDisableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkDisableCodesOK, error) BulkEnableCodes(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error) BulkEnableCodesShort(params *BulkEnableCodesParams, authInfo runtime.ClientAuthInfoWriter) (*BulkEnableCodesOK, error) QueryRedeemHistory(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error) QueryRedeemHistoryShort(params *QueryRedeemHistoryParams, authInfo runtime.ClientAuthInfoWriter) (*QueryRedeemHistoryOK, error) GetCode(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, *GetCodeNotFound, *GetCodeConflict, error) GetCodeShort(params *GetCodeParams, authInfo runtime.ClientAuthInfoWriter) (*GetCodeOK, error) DisableCode(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, *DisableCodeNotFound, error) DisableCodeShort(params *DisableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*DisableCodeOK, error) EnableCode(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, *EnableCodeNotFound, error) EnableCodeShort(params *EnableCodeParams, authInfo runtime.ClientAuthInfoWriter) (*EnableCodeOK, error) ApplyUserRedemption(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, *ApplyUserRedemptionNotFound, *ApplyUserRedemptionConflict, *ApplyUserRedemptionUnprocessableEntity, error) ApplyUserRedemptionShort(params *ApplyUserRedemptionParams, authInfo runtime.ClientAuthInfoWriter) (*ApplyUserRedemptionOK, 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 campaign API client.
type CreateCampaignConflict ¶
type CreateCampaignConflict struct {
Payload *platformclientmodels.ErrorEntity
}
CreateCampaignConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37171</td><td>Campaign [{name}] already exists in namespace [{namespace}]</td></tr></table>
func NewCreateCampaignConflict ¶
func NewCreateCampaignConflict() *CreateCampaignConflict
NewCreateCampaignConflict creates a CreateCampaignConflict with default headers values
func (*CreateCampaignConflict) Error ¶
func (o *CreateCampaignConflict) Error() string
func (*CreateCampaignConflict) GetPayload ¶
func (o *CreateCampaignConflict) GetPayload() *platformclientmodels.ErrorEntity
func (*CreateCampaignConflict) ToJSONString ¶ added in v0.25.0
func (o *CreateCampaignConflict) ToJSONString() string
type CreateCampaignCreated ¶
type CreateCampaignCreated struct {
Payload *platformclientmodels.CampaignInfo
}
CreateCampaignCreated handles this case with default header values.
successful operation
func NewCreateCampaignCreated ¶
func NewCreateCampaignCreated() *CreateCampaignCreated
NewCreateCampaignCreated creates a CreateCampaignCreated with default headers values
func (*CreateCampaignCreated) Error ¶
func (o *CreateCampaignCreated) Error() string
func (*CreateCampaignCreated) GetPayload ¶
func (o *CreateCampaignCreated) GetPayload() *platformclientmodels.CampaignInfo
func (*CreateCampaignCreated) ToJSONString ¶ added in v0.25.0
func (o *CreateCampaignCreated) ToJSONString() string
type CreateCampaignParams ¶
type CreateCampaignParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *platformclientmodels.CampaignCreate /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCampaignParams contains all the parameters to send to the API endpoint for the create campaign operation typically these are written to a http.Request
func NewCreateCampaignParams ¶
func NewCreateCampaignParams() *CreateCampaignParams
NewCreateCampaignParams creates a new CreateCampaignParams object with the default values initialized.
func NewCreateCampaignParamsWithContext ¶
func NewCreateCampaignParamsWithContext(ctx context.Context) *CreateCampaignParams
NewCreateCampaignParamsWithContext creates a new CreateCampaignParams object with the default values initialized, and the ability to set a context for a request
func NewCreateCampaignParamsWithHTTPClient ¶
func NewCreateCampaignParamsWithHTTPClient(client *http.Client) *CreateCampaignParams
NewCreateCampaignParamsWithHTTPClient creates a new CreateCampaignParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateCampaignParamsWithTimeout ¶
func NewCreateCampaignParamsWithTimeout(timeout time.Duration) *CreateCampaignParams
NewCreateCampaignParamsWithTimeout creates a new CreateCampaignParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateCampaignParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *CreateCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create campaign params
func (*CreateCampaignParams) SetBody ¶
func (o *CreateCampaignParams) SetBody(body *platformclientmodels.CampaignCreate)
SetBody adds the body to the create campaign params
func (*CreateCampaignParams) SetContext ¶
func (o *CreateCampaignParams) SetContext(ctx context.Context)
SetContext adds the context to the create campaign params
func (*CreateCampaignParams) SetHTTPClient ¶
func (o *CreateCampaignParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create campaign params
func (*CreateCampaignParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *CreateCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create campaign params
func (*CreateCampaignParams) SetNamespace ¶
func (o *CreateCampaignParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create campaign params
func (*CreateCampaignParams) SetTimeout ¶
func (o *CreateCampaignParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create campaign params
func (*CreateCampaignParams) WithBody ¶
func (o *CreateCampaignParams) WithBody(body *platformclientmodels.CampaignCreate) *CreateCampaignParams
WithBody adds the body to the create campaign params
func (*CreateCampaignParams) WithContext ¶
func (o *CreateCampaignParams) WithContext(ctx context.Context) *CreateCampaignParams
WithContext adds the context to the create campaign params
func (*CreateCampaignParams) WithHTTPClient ¶
func (o *CreateCampaignParams) WithHTTPClient(client *http.Client) *CreateCampaignParams
WithHTTPClient adds the HTTPClient to the create campaign params
func (*CreateCampaignParams) WithNamespace ¶
func (o *CreateCampaignParams) WithNamespace(namespace string) *CreateCampaignParams
WithNamespace adds the namespace to the create campaign params
func (*CreateCampaignParams) WithTimeout ¶
func (o *CreateCampaignParams) WithTimeout(timeout time.Duration) *CreateCampaignParams
WithTimeout adds the timeout to the create campaign params
func (*CreateCampaignParams) WriteToRequest ¶
func (o *CreateCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCampaignReader ¶
type CreateCampaignReader struct {
// contains filtered or unexported fields
}
CreateCampaignReader is a Reader for the CreateCampaign structure.
func (*CreateCampaignReader) ReadResponse ¶
func (o *CreateCampaignReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateCampaignUnprocessableEntity ¶
type CreateCampaignUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
CreateCampaignUnprocessableEntity 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 NewCreateCampaignUnprocessableEntity ¶
func NewCreateCampaignUnprocessableEntity() *CreateCampaignUnprocessableEntity
NewCreateCampaignUnprocessableEntity creates a CreateCampaignUnprocessableEntity with default headers values
func (*CreateCampaignUnprocessableEntity) Error ¶
func (o *CreateCampaignUnprocessableEntity) Error() string
func (*CreateCampaignUnprocessableEntity) GetPayload ¶
func (o *CreateCampaignUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*CreateCampaignUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *CreateCampaignUnprocessableEntity) ToJSONString() string
type CreateCodesCreated ¶
type CreateCodesCreated struct {
Payload *platformclientmodels.CodeCreateResult
}
CreateCodesCreated handles this case with default header values.
successful operation
func NewCreateCodesCreated ¶
func NewCreateCodesCreated() *CreateCodesCreated
NewCreateCodesCreated creates a CreateCodesCreated with default headers values
func (*CreateCodesCreated) Error ¶
func (o *CreateCodesCreated) Error() string
func (*CreateCodesCreated) GetPayload ¶
func (o *CreateCodesCreated) GetPayload() *platformclientmodels.CodeCreateResult
func (*CreateCodesCreated) ToJSONString ¶ added in v0.25.0
func (o *CreateCodesCreated) ToJSONString() string
type CreateCodesNotFound ¶
type CreateCodesNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
CreateCodesNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewCreateCodesNotFound ¶
func NewCreateCodesNotFound() *CreateCodesNotFound
NewCreateCodesNotFound creates a CreateCodesNotFound with default headers values
func (*CreateCodesNotFound) Error ¶
func (o *CreateCodesNotFound) Error() string
func (*CreateCodesNotFound) GetPayload ¶
func (o *CreateCodesNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*CreateCodesNotFound) ToJSONString ¶ added in v0.25.0
func (o *CreateCodesNotFound) ToJSONString() string
type CreateCodesParams ¶
type CreateCodesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *platformclientmodels.CodeCreate /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateCodesParams contains all the parameters to send to the API endpoint for the create codes operation typically these are written to a http.Request
func NewCreateCodesParams ¶
func NewCreateCodesParams() *CreateCodesParams
NewCreateCodesParams creates a new CreateCodesParams object with the default values initialized.
func NewCreateCodesParamsWithContext ¶
func NewCreateCodesParamsWithContext(ctx context.Context) *CreateCodesParams
NewCreateCodesParamsWithContext creates a new CreateCodesParams object with the default values initialized, and the ability to set a context for a request
func NewCreateCodesParamsWithHTTPClient ¶
func NewCreateCodesParamsWithHTTPClient(client *http.Client) *CreateCodesParams
NewCreateCodesParamsWithHTTPClient creates a new CreateCodesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateCodesParamsWithTimeout ¶
func NewCreateCodesParamsWithTimeout(timeout time.Duration) *CreateCodesParams
NewCreateCodesParamsWithTimeout creates a new CreateCodesParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateCodesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *CreateCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the create codes params
func (*CreateCodesParams) SetBody ¶
func (o *CreateCodesParams) SetBody(body *platformclientmodels.CodeCreate)
SetBody adds the body to the create codes params
func (*CreateCodesParams) SetCampaignID ¶
func (o *CreateCodesParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the create codes params
func (*CreateCodesParams) SetContext ¶
func (o *CreateCodesParams) SetContext(ctx context.Context)
SetContext adds the context to the create codes params
func (*CreateCodesParams) SetHTTPClient ¶
func (o *CreateCodesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create codes params
func (*CreateCodesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *CreateCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the create codes params
func (*CreateCodesParams) SetNamespace ¶
func (o *CreateCodesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the create codes params
func (*CreateCodesParams) SetTimeout ¶
func (o *CreateCodesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create codes params
func (*CreateCodesParams) WithBody ¶
func (o *CreateCodesParams) WithBody(body *platformclientmodels.CodeCreate) *CreateCodesParams
WithBody adds the body to the create codes params
func (*CreateCodesParams) WithCampaignID ¶
func (o *CreateCodesParams) WithCampaignID(campaignID string) *CreateCodesParams
WithCampaignID adds the campaignID to the create codes params
func (*CreateCodesParams) WithContext ¶
func (o *CreateCodesParams) WithContext(ctx context.Context) *CreateCodesParams
WithContext adds the context to the create codes params
func (*CreateCodesParams) WithHTTPClient ¶
func (o *CreateCodesParams) WithHTTPClient(client *http.Client) *CreateCodesParams
WithHTTPClient adds the HTTPClient to the create codes params
func (*CreateCodesParams) WithNamespace ¶
func (o *CreateCodesParams) WithNamespace(namespace string) *CreateCodesParams
WithNamespace adds the namespace to the create codes params
func (*CreateCodesParams) WithTimeout ¶
func (o *CreateCodesParams) WithTimeout(timeout time.Duration) *CreateCodesParams
WithTimeout adds the timeout to the create codes params
func (*CreateCodesParams) WriteToRequest ¶
func (o *CreateCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateCodesReader ¶
type CreateCodesReader struct {
// contains filtered or unexported fields
}
CreateCodesReader is a Reader for the CreateCodes structure.
func (*CreateCodesReader) ReadResponse ¶
func (o *CreateCodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateCodesUnprocessableEntity ¶
type CreateCodesUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
CreateCodesUnprocessableEntity 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 NewCreateCodesUnprocessableEntity ¶
func NewCreateCodesUnprocessableEntity() *CreateCodesUnprocessableEntity
NewCreateCodesUnprocessableEntity creates a CreateCodesUnprocessableEntity with default headers values
func (*CreateCodesUnprocessableEntity) Error ¶
func (o *CreateCodesUnprocessableEntity) Error() string
func (*CreateCodesUnprocessableEntity) GetPayload ¶
func (o *CreateCodesUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*CreateCodesUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *CreateCodesUnprocessableEntity) ToJSONString() string
type DisableCodeNotFound ¶
type DisableCodeNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
DisableCodeNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr><tr><td>37176</td><td>Code [{code}] has been redeemed in namespace [{namespace}]</td></tr></table>
func NewDisableCodeNotFound ¶
func NewDisableCodeNotFound() *DisableCodeNotFound
NewDisableCodeNotFound creates a DisableCodeNotFound with default headers values
func (*DisableCodeNotFound) Error ¶
func (o *DisableCodeNotFound) Error() string
func (*DisableCodeNotFound) GetPayload ¶
func (o *DisableCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*DisableCodeNotFound) ToJSONString ¶ added in v0.25.0
func (o *DisableCodeNotFound) ToJSONString() string
type DisableCodeOK ¶
type DisableCodeOK struct {
Payload *platformclientmodels.CodeInfo
}
DisableCodeOK handles this case with default header values.
successful operation
func NewDisableCodeOK ¶
func NewDisableCodeOK() *DisableCodeOK
NewDisableCodeOK creates a DisableCodeOK with default headers values
func (*DisableCodeOK) Error ¶
func (o *DisableCodeOK) Error() string
func (*DisableCodeOK) GetPayload ¶
func (o *DisableCodeOK) GetPayload() *platformclientmodels.CodeInfo
func (*DisableCodeOK) ToJSONString ¶ added in v0.25.0
func (o *DisableCodeOK) ToJSONString() string
type DisableCodeParams ¶
type DisableCodeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Code*/ Code string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DisableCodeParams contains all the parameters to send to the API endpoint for the disable code operation typically these are written to a http.Request
func NewDisableCodeParams ¶
func NewDisableCodeParams() *DisableCodeParams
NewDisableCodeParams creates a new DisableCodeParams object with the default values initialized.
func NewDisableCodeParamsWithContext ¶
func NewDisableCodeParamsWithContext(ctx context.Context) *DisableCodeParams
NewDisableCodeParamsWithContext creates a new DisableCodeParams object with the default values initialized, and the ability to set a context for a request
func NewDisableCodeParamsWithHTTPClient ¶
func NewDisableCodeParamsWithHTTPClient(client *http.Client) *DisableCodeParams
NewDisableCodeParamsWithHTTPClient creates a new DisableCodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDisableCodeParamsWithTimeout ¶
func NewDisableCodeParamsWithTimeout(timeout time.Duration) *DisableCodeParams
NewDisableCodeParamsWithTimeout creates a new DisableCodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*DisableCodeParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *DisableCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the disable code params
func (*DisableCodeParams) SetCode ¶
func (o *DisableCodeParams) SetCode(code string)
SetCode adds the code to the disable code params
func (*DisableCodeParams) SetContext ¶
func (o *DisableCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the disable code params
func (*DisableCodeParams) SetHTTPClient ¶
func (o *DisableCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the disable code params
func (*DisableCodeParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *DisableCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the disable code params
func (*DisableCodeParams) SetNamespace ¶
func (o *DisableCodeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the disable code params
func (*DisableCodeParams) SetTimeout ¶
func (o *DisableCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the disable code params
func (*DisableCodeParams) WithCode ¶
func (o *DisableCodeParams) WithCode(code string) *DisableCodeParams
WithCode adds the code to the disable code params
func (*DisableCodeParams) WithContext ¶
func (o *DisableCodeParams) WithContext(ctx context.Context) *DisableCodeParams
WithContext adds the context to the disable code params
func (*DisableCodeParams) WithHTTPClient ¶
func (o *DisableCodeParams) WithHTTPClient(client *http.Client) *DisableCodeParams
WithHTTPClient adds the HTTPClient to the disable code params
func (*DisableCodeParams) WithNamespace ¶
func (o *DisableCodeParams) WithNamespace(namespace string) *DisableCodeParams
WithNamespace adds the namespace to the disable code params
func (*DisableCodeParams) WithTimeout ¶
func (o *DisableCodeParams) WithTimeout(timeout time.Duration) *DisableCodeParams
WithTimeout adds the timeout to the disable code params
func (*DisableCodeParams) WriteToRequest ¶
func (o *DisableCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DisableCodeReader ¶
type DisableCodeReader struct {
// contains filtered or unexported fields
}
DisableCodeReader is a Reader for the DisableCode structure.
func (*DisableCodeReader) ReadResponse ¶
func (o *DisableCodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DownloadOK ¶
DownloadOK handles this case with default header values.
Successful operation
func NewDownloadOK ¶
func NewDownloadOK(writer io.Writer) *DownloadOK
NewDownloadOK creates a DownloadOK with default headers values
func (*DownloadOK) Error ¶
func (o *DownloadOK) Error() string
func (*DownloadOK) GetPayload ¶ added in v0.32.0
func (o *DownloadOK) GetPayload() io.Writer
func (*DownloadOK) ToJSONString ¶ added in v0.32.0
func (o *DownloadOK) ToJSONString() string
type DownloadParams ¶
type DownloadParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string /*BatchNo*/ BatchNo *int32 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DownloadParams contains all the parameters to send to the API endpoint for the download operation typically these are written to a http.Request
func NewDownloadParams ¶
func NewDownloadParams() *DownloadParams
NewDownloadParams creates a new DownloadParams object with the default values initialized.
func NewDownloadParamsWithContext ¶
func NewDownloadParamsWithContext(ctx context.Context) *DownloadParams
NewDownloadParamsWithContext creates a new DownloadParams object with the default values initialized, and the ability to set a context for a request
func NewDownloadParamsWithHTTPClient ¶
func NewDownloadParamsWithHTTPClient(client *http.Client) *DownloadParams
NewDownloadParamsWithHTTPClient creates a new DownloadParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDownloadParamsWithTimeout ¶
func NewDownloadParamsWithTimeout(timeout time.Duration) *DownloadParams
NewDownloadParamsWithTimeout creates a new DownloadParams object with the default values initialized, and the ability to set a timeout on a request
func (*DownloadParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *DownloadParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the download params
func (*DownloadParams) SetBatchNo ¶
func (o *DownloadParams) SetBatchNo(batchNo *int32)
SetBatchNo adds the batchNo to the download params
func (*DownloadParams) SetCampaignID ¶
func (o *DownloadParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the download params
func (*DownloadParams) SetContext ¶
func (o *DownloadParams) SetContext(ctx context.Context)
SetContext adds the context to the download params
func (*DownloadParams) SetHTTPClient ¶
func (o *DownloadParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the download params
func (*DownloadParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *DownloadParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the download params
func (*DownloadParams) SetNamespace ¶
func (o *DownloadParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the download params
func (*DownloadParams) SetTimeout ¶
func (o *DownloadParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the download params
func (*DownloadParams) WithBatchNo ¶
func (o *DownloadParams) WithBatchNo(batchNo *int32) *DownloadParams
WithBatchNo adds the batchNo to the download params
func (*DownloadParams) WithCampaignID ¶
func (o *DownloadParams) WithCampaignID(campaignID string) *DownloadParams
WithCampaignID adds the campaignID to the download params
func (*DownloadParams) WithContext ¶
func (o *DownloadParams) WithContext(ctx context.Context) *DownloadParams
WithContext adds the context to the download params
func (*DownloadParams) WithHTTPClient ¶
func (o *DownloadParams) WithHTTPClient(client *http.Client) *DownloadParams
WithHTTPClient adds the HTTPClient to the download params
func (*DownloadParams) WithNamespace ¶
func (o *DownloadParams) WithNamespace(namespace string) *DownloadParams
WithNamespace adds the namespace to the download params
func (*DownloadParams) WithTimeout ¶
func (o *DownloadParams) WithTimeout(timeout time.Duration) *DownloadParams
WithTimeout adds the timeout to the download params
func (*DownloadParams) WriteToRequest ¶
func (o *DownloadParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DownloadReader ¶
type DownloadReader struct {
// contains filtered or unexported fields
}
DownloadReader is a Reader for the Download structure.
func (*DownloadReader) ReadResponse ¶
func (o *DownloadReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type EnableCodeNotFound ¶
type EnableCodeNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
EnableCodeNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>
func NewEnableCodeNotFound ¶
func NewEnableCodeNotFound() *EnableCodeNotFound
NewEnableCodeNotFound creates a EnableCodeNotFound with default headers values
func (*EnableCodeNotFound) Error ¶
func (o *EnableCodeNotFound) Error() string
func (*EnableCodeNotFound) GetPayload ¶
func (o *EnableCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*EnableCodeNotFound) ToJSONString ¶ added in v0.25.0
func (o *EnableCodeNotFound) ToJSONString() string
type EnableCodeOK ¶
type EnableCodeOK struct {
Payload *platformclientmodels.CodeInfo
}
EnableCodeOK handles this case with default header values.
successful operation
func NewEnableCodeOK ¶
func NewEnableCodeOK() *EnableCodeOK
NewEnableCodeOK creates a EnableCodeOK with default headers values
func (*EnableCodeOK) Error ¶
func (o *EnableCodeOK) Error() string
func (*EnableCodeOK) GetPayload ¶
func (o *EnableCodeOK) GetPayload() *platformclientmodels.CodeInfo
func (*EnableCodeOK) ToJSONString ¶ added in v0.25.0
func (o *EnableCodeOK) ToJSONString() string
type EnableCodeParams ¶
type EnableCodeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Code*/ Code string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
EnableCodeParams contains all the parameters to send to the API endpoint for the enable code operation typically these are written to a http.Request
func NewEnableCodeParams ¶
func NewEnableCodeParams() *EnableCodeParams
NewEnableCodeParams creates a new EnableCodeParams object with the default values initialized.
func NewEnableCodeParamsWithContext ¶
func NewEnableCodeParamsWithContext(ctx context.Context) *EnableCodeParams
NewEnableCodeParamsWithContext creates a new EnableCodeParams object with the default values initialized, and the ability to set a context for a request
func NewEnableCodeParamsWithHTTPClient ¶
func NewEnableCodeParamsWithHTTPClient(client *http.Client) *EnableCodeParams
NewEnableCodeParamsWithHTTPClient creates a new EnableCodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewEnableCodeParamsWithTimeout ¶
func NewEnableCodeParamsWithTimeout(timeout time.Duration) *EnableCodeParams
NewEnableCodeParamsWithTimeout creates a new EnableCodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*EnableCodeParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *EnableCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the enable code params
func (*EnableCodeParams) SetCode ¶
func (o *EnableCodeParams) SetCode(code string)
SetCode adds the code to the enable code params
func (*EnableCodeParams) SetContext ¶
func (o *EnableCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the enable code params
func (*EnableCodeParams) SetHTTPClient ¶
func (o *EnableCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the enable code params
func (*EnableCodeParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *EnableCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the enable code params
func (*EnableCodeParams) SetNamespace ¶
func (o *EnableCodeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the enable code params
func (*EnableCodeParams) SetTimeout ¶
func (o *EnableCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the enable code params
func (*EnableCodeParams) WithCode ¶
func (o *EnableCodeParams) WithCode(code string) *EnableCodeParams
WithCode adds the code to the enable code params
func (*EnableCodeParams) WithContext ¶
func (o *EnableCodeParams) WithContext(ctx context.Context) *EnableCodeParams
WithContext adds the context to the enable code params
func (*EnableCodeParams) WithHTTPClient ¶
func (o *EnableCodeParams) WithHTTPClient(client *http.Client) *EnableCodeParams
WithHTTPClient adds the HTTPClient to the enable code params
func (*EnableCodeParams) WithNamespace ¶
func (o *EnableCodeParams) WithNamespace(namespace string) *EnableCodeParams
WithNamespace adds the namespace to the enable code params
func (*EnableCodeParams) WithTimeout ¶
func (o *EnableCodeParams) WithTimeout(timeout time.Duration) *EnableCodeParams
WithTimeout adds the timeout to the enable code params
func (*EnableCodeParams) WriteToRequest ¶
func (o *EnableCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type EnableCodeReader ¶
type EnableCodeReader struct {
// contains filtered or unexported fields
}
EnableCodeReader is a Reader for the EnableCode structure.
func (*EnableCodeReader) ReadResponse ¶
func (o *EnableCodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCampaignDynamicNotFound ¶
type GetCampaignDynamicNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
GetCampaignDynamicNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewGetCampaignDynamicNotFound ¶
func NewGetCampaignDynamicNotFound() *GetCampaignDynamicNotFound
NewGetCampaignDynamicNotFound creates a GetCampaignDynamicNotFound with default headers values
func (*GetCampaignDynamicNotFound) Error ¶
func (o *GetCampaignDynamicNotFound) Error() string
func (*GetCampaignDynamicNotFound) GetPayload ¶
func (o *GetCampaignDynamicNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*GetCampaignDynamicNotFound) ToJSONString ¶ added in v0.25.0
func (o *GetCampaignDynamicNotFound) ToJSONString() string
type GetCampaignDynamicOK ¶
type GetCampaignDynamicOK struct {
Payload *platformclientmodels.CampaignDynamicInfo
}
GetCampaignDynamicOK handles this case with default header values.
successful operation
func NewGetCampaignDynamicOK ¶
func NewGetCampaignDynamicOK() *GetCampaignDynamicOK
NewGetCampaignDynamicOK creates a GetCampaignDynamicOK with default headers values
func (*GetCampaignDynamicOK) Error ¶
func (o *GetCampaignDynamicOK) Error() string
func (*GetCampaignDynamicOK) GetPayload ¶
func (o *GetCampaignDynamicOK) GetPayload() *platformclientmodels.CampaignDynamicInfo
func (*GetCampaignDynamicOK) ToJSONString ¶ added in v0.25.0
func (o *GetCampaignDynamicOK) ToJSONString() string
type GetCampaignDynamicParams ¶
type GetCampaignDynamicParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCampaignDynamicParams contains all the parameters to send to the API endpoint for the get campaign dynamic operation typically these are written to a http.Request
func NewGetCampaignDynamicParams ¶
func NewGetCampaignDynamicParams() *GetCampaignDynamicParams
NewGetCampaignDynamicParams creates a new GetCampaignDynamicParams object with the default values initialized.
func NewGetCampaignDynamicParamsWithContext ¶
func NewGetCampaignDynamicParamsWithContext(ctx context.Context) *GetCampaignDynamicParams
NewGetCampaignDynamicParamsWithContext creates a new GetCampaignDynamicParams object with the default values initialized, and the ability to set a context for a request
func NewGetCampaignDynamicParamsWithHTTPClient ¶
func NewGetCampaignDynamicParamsWithHTTPClient(client *http.Client) *GetCampaignDynamicParams
NewGetCampaignDynamicParamsWithHTTPClient creates a new GetCampaignDynamicParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCampaignDynamicParamsWithTimeout ¶
func NewGetCampaignDynamicParamsWithTimeout(timeout time.Duration) *GetCampaignDynamicParams
NewGetCampaignDynamicParamsWithTimeout creates a new GetCampaignDynamicParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCampaignDynamicParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetCampaignDynamicParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetCampaignID ¶
func (o *GetCampaignDynamicParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetContext ¶
func (o *GetCampaignDynamicParams) SetContext(ctx context.Context)
SetContext adds the context to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetHTTPClient ¶
func (o *GetCampaignDynamicParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GetCampaignDynamicParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetNamespace ¶
func (o *GetCampaignDynamicParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get campaign dynamic params
func (*GetCampaignDynamicParams) SetTimeout ¶
func (o *GetCampaignDynamicParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get campaign dynamic params
func (*GetCampaignDynamicParams) WithCampaignID ¶
func (o *GetCampaignDynamicParams) WithCampaignID(campaignID string) *GetCampaignDynamicParams
WithCampaignID adds the campaignID to the get campaign dynamic params
func (*GetCampaignDynamicParams) WithContext ¶
func (o *GetCampaignDynamicParams) WithContext(ctx context.Context) *GetCampaignDynamicParams
WithContext adds the context to the get campaign dynamic params
func (*GetCampaignDynamicParams) WithHTTPClient ¶
func (o *GetCampaignDynamicParams) WithHTTPClient(client *http.Client) *GetCampaignDynamicParams
WithHTTPClient adds the HTTPClient to the get campaign dynamic params
func (*GetCampaignDynamicParams) WithNamespace ¶
func (o *GetCampaignDynamicParams) WithNamespace(namespace string) *GetCampaignDynamicParams
WithNamespace adds the namespace to the get campaign dynamic params
func (*GetCampaignDynamicParams) WithTimeout ¶
func (o *GetCampaignDynamicParams) WithTimeout(timeout time.Duration) *GetCampaignDynamicParams
WithTimeout adds the timeout to the get campaign dynamic params
func (*GetCampaignDynamicParams) WriteToRequest ¶
func (o *GetCampaignDynamicParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCampaignDynamicReader ¶
type GetCampaignDynamicReader struct {
// contains filtered or unexported fields
}
GetCampaignDynamicReader is a Reader for the GetCampaignDynamic structure.
func (*GetCampaignDynamicReader) ReadResponse ¶
func (o *GetCampaignDynamicReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCampaignNotFound ¶
type GetCampaignNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
GetCampaignNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewGetCampaignNotFound ¶
func NewGetCampaignNotFound() *GetCampaignNotFound
NewGetCampaignNotFound creates a GetCampaignNotFound with default headers values
func (*GetCampaignNotFound) Error ¶
func (o *GetCampaignNotFound) Error() string
func (*GetCampaignNotFound) GetPayload ¶
func (o *GetCampaignNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*GetCampaignNotFound) ToJSONString ¶ added in v0.25.0
func (o *GetCampaignNotFound) ToJSONString() string
type GetCampaignOK ¶
type GetCampaignOK struct {
Payload *platformclientmodels.CampaignInfo
}
GetCampaignOK handles this case with default header values.
successful operation
func NewGetCampaignOK ¶
func NewGetCampaignOK() *GetCampaignOK
NewGetCampaignOK creates a GetCampaignOK with default headers values
func (*GetCampaignOK) Error ¶
func (o *GetCampaignOK) Error() string
func (*GetCampaignOK) GetPayload ¶
func (o *GetCampaignOK) GetPayload() *platformclientmodels.CampaignInfo
func (*GetCampaignOK) ToJSONString ¶ added in v0.25.0
func (o *GetCampaignOK) ToJSONString() string
type GetCampaignParams ¶
type GetCampaignParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCampaignParams contains all the parameters to send to the API endpoint for the get campaign operation typically these are written to a http.Request
func NewGetCampaignParams ¶
func NewGetCampaignParams() *GetCampaignParams
NewGetCampaignParams creates a new GetCampaignParams object with the default values initialized.
func NewGetCampaignParamsWithContext ¶
func NewGetCampaignParamsWithContext(ctx context.Context) *GetCampaignParams
NewGetCampaignParamsWithContext creates a new GetCampaignParams object with the default values initialized, and the ability to set a context for a request
func NewGetCampaignParamsWithHTTPClient ¶
func NewGetCampaignParamsWithHTTPClient(client *http.Client) *GetCampaignParams
NewGetCampaignParamsWithHTTPClient creates a new GetCampaignParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCampaignParamsWithTimeout ¶
func NewGetCampaignParamsWithTimeout(timeout time.Duration) *GetCampaignParams
NewGetCampaignParamsWithTimeout creates a new GetCampaignParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCampaignParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get campaign params
func (*GetCampaignParams) SetCampaignID ¶
func (o *GetCampaignParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the get campaign params
func (*GetCampaignParams) SetContext ¶
func (o *GetCampaignParams) SetContext(ctx context.Context)
SetContext adds the context to the get campaign params
func (*GetCampaignParams) SetHTTPClient ¶
func (o *GetCampaignParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get campaign params
func (*GetCampaignParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GetCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get campaign params
func (*GetCampaignParams) SetNamespace ¶
func (o *GetCampaignParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get campaign params
func (*GetCampaignParams) SetTimeout ¶
func (o *GetCampaignParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get campaign params
func (*GetCampaignParams) WithCampaignID ¶
func (o *GetCampaignParams) WithCampaignID(campaignID string) *GetCampaignParams
WithCampaignID adds the campaignID to the get campaign params
func (*GetCampaignParams) WithContext ¶
func (o *GetCampaignParams) WithContext(ctx context.Context) *GetCampaignParams
WithContext adds the context to the get campaign params
func (*GetCampaignParams) WithHTTPClient ¶
func (o *GetCampaignParams) WithHTTPClient(client *http.Client) *GetCampaignParams
WithHTTPClient adds the HTTPClient to the get campaign params
func (*GetCampaignParams) WithNamespace ¶
func (o *GetCampaignParams) WithNamespace(namespace string) *GetCampaignParams
WithNamespace adds the namespace to the get campaign params
func (*GetCampaignParams) WithTimeout ¶
func (o *GetCampaignParams) WithTimeout(timeout time.Duration) *GetCampaignParams
WithTimeout adds the timeout to the get campaign params
func (*GetCampaignParams) WriteToRequest ¶
func (o *GetCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCampaignReader ¶
type GetCampaignReader struct {
// contains filtered or unexported fields
}
GetCampaignReader is a Reader for the GetCampaign structure.
func (*GetCampaignReader) ReadResponse ¶
func (o *GetCampaignReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCodeConflict ¶
type GetCodeConflict struct {
Payload *platformclientmodels.ErrorEntity
}
GetCodeConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr></table>
func NewGetCodeConflict ¶
func NewGetCodeConflict() *GetCodeConflict
NewGetCodeConflict creates a GetCodeConflict with default headers values
func (*GetCodeConflict) Error ¶
func (o *GetCodeConflict) Error() string
func (*GetCodeConflict) GetPayload ¶
func (o *GetCodeConflict) GetPayload() *platformclientmodels.ErrorEntity
func (*GetCodeConflict) ToJSONString ¶ added in v0.25.0
func (o *GetCodeConflict) ToJSONString() string
type GetCodeNotFound ¶
type GetCodeNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
GetCodeNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>
func NewGetCodeNotFound ¶
func NewGetCodeNotFound() *GetCodeNotFound
NewGetCodeNotFound creates a GetCodeNotFound with default headers values
func (*GetCodeNotFound) Error ¶
func (o *GetCodeNotFound) Error() string
func (*GetCodeNotFound) GetPayload ¶
func (o *GetCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*GetCodeNotFound) ToJSONString ¶ added in v0.25.0
func (o *GetCodeNotFound) ToJSONString() string
type GetCodeOK ¶
type GetCodeOK struct {
Payload *platformclientmodels.CodeInfo
}
GetCodeOK handles this case with default header values.
successful operation
func NewGetCodeOK ¶
func NewGetCodeOK() *GetCodeOK
NewGetCodeOK creates a GetCodeOK with default headers values
func (*GetCodeOK) GetPayload ¶
func (o *GetCodeOK) GetPayload() *platformclientmodels.CodeInfo
func (*GetCodeOK) ToJSONString ¶ added in v0.25.0
type GetCodeParams ¶
type GetCodeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Code*/ Code string /*Namespace*/ Namespace string /*Redeemable*/ Redeemable *bool AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCodeParams contains all the parameters to send to the API endpoint for the get code operation typically these are written to a http.Request
func NewGetCodeParams ¶
func NewGetCodeParams() *GetCodeParams
NewGetCodeParams creates a new GetCodeParams object with the default values initialized.
func NewGetCodeParamsWithContext ¶
func NewGetCodeParamsWithContext(ctx context.Context) *GetCodeParams
NewGetCodeParamsWithContext creates a new GetCodeParams object with the default values initialized, and the ability to set a context for a request
func NewGetCodeParamsWithHTTPClient ¶
func NewGetCodeParamsWithHTTPClient(client *http.Client) *GetCodeParams
NewGetCodeParamsWithHTTPClient creates a new GetCodeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCodeParamsWithTimeout ¶
func NewGetCodeParamsWithTimeout(timeout time.Duration) *GetCodeParams
NewGetCodeParamsWithTimeout creates a new GetCodeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCodeParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetCodeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get code params
func (*GetCodeParams) SetCode ¶
func (o *GetCodeParams) SetCode(code string)
SetCode adds the code to the get code params
func (*GetCodeParams) SetContext ¶
func (o *GetCodeParams) SetContext(ctx context.Context)
SetContext adds the context to the get code params
func (*GetCodeParams) SetHTTPClient ¶
func (o *GetCodeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get code params
func (*GetCodeParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *GetCodeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the get code params
func (*GetCodeParams) SetNamespace ¶
func (o *GetCodeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get code params
func (*GetCodeParams) SetRedeemable ¶
func (o *GetCodeParams) SetRedeemable(redeemable *bool)
SetRedeemable adds the redeemable to the get code params
func (*GetCodeParams) SetTimeout ¶
func (o *GetCodeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get code params
func (*GetCodeParams) WithCode ¶
func (o *GetCodeParams) WithCode(code string) *GetCodeParams
WithCode adds the code to the get code params
func (*GetCodeParams) WithContext ¶
func (o *GetCodeParams) WithContext(ctx context.Context) *GetCodeParams
WithContext adds the context to the get code params
func (*GetCodeParams) WithHTTPClient ¶
func (o *GetCodeParams) WithHTTPClient(client *http.Client) *GetCodeParams
WithHTTPClient adds the HTTPClient to the get code params
func (*GetCodeParams) WithNamespace ¶
func (o *GetCodeParams) WithNamespace(namespace string) *GetCodeParams
WithNamespace adds the namespace to the get code params
func (*GetCodeParams) WithRedeemable ¶
func (o *GetCodeParams) WithRedeemable(redeemable *bool) *GetCodeParams
WithRedeemable adds the redeemable to the get code params
func (*GetCodeParams) WithTimeout ¶
func (o *GetCodeParams) WithTimeout(timeout time.Duration) *GetCodeParams
WithTimeout adds the timeout to the get code params
func (*GetCodeParams) WriteToRequest ¶
func (o *GetCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCodeReader ¶
type GetCodeReader struct {
// contains filtered or unexported fields
}
GetCodeReader is a Reader for the GetCode structure.
func (*GetCodeReader) ReadResponse ¶
func (o *GetCodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryCampaignsOK ¶
type QueryCampaignsOK struct {
Payload *platformclientmodels.CampaignPagingSlicedResult
}
QueryCampaignsOK handles this case with default header values.
successful operation
func NewQueryCampaignsOK ¶
func NewQueryCampaignsOK() *QueryCampaignsOK
NewQueryCampaignsOK creates a QueryCampaignsOK with default headers values
func (*QueryCampaignsOK) Error ¶
func (o *QueryCampaignsOK) Error() string
func (*QueryCampaignsOK) GetPayload ¶
func (o *QueryCampaignsOK) GetPayload() *platformclientmodels.CampaignPagingSlicedResult
func (*QueryCampaignsOK) ToJSONString ¶ added in v0.25.0
func (o *QueryCampaignsOK) ToJSONString() string
type QueryCampaignsParams ¶
type QueryCampaignsParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace*/ Namespace string /*Limit*/ Limit *int32 /*Name*/ Name *string /*Offset*/ Offset *int32 /*Tag*/ Tag *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryCampaignsParams contains all the parameters to send to the API endpoint for the query campaigns operation typically these are written to a http.Request
func NewQueryCampaignsParams ¶
func NewQueryCampaignsParams() *QueryCampaignsParams
NewQueryCampaignsParams creates a new QueryCampaignsParams object with the default values initialized.
func NewQueryCampaignsParamsWithContext ¶
func NewQueryCampaignsParamsWithContext(ctx context.Context) *QueryCampaignsParams
NewQueryCampaignsParamsWithContext creates a new QueryCampaignsParams object with the default values initialized, and the ability to set a context for a request
func NewQueryCampaignsParamsWithHTTPClient ¶
func NewQueryCampaignsParamsWithHTTPClient(client *http.Client) *QueryCampaignsParams
NewQueryCampaignsParamsWithHTTPClient creates a new QueryCampaignsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQueryCampaignsParamsWithTimeout ¶
func NewQueryCampaignsParamsWithTimeout(timeout time.Duration) *QueryCampaignsParams
NewQueryCampaignsParamsWithTimeout creates a new QueryCampaignsParams object with the default values initialized, and the ability to set a timeout on a request
func (*QueryCampaignsParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *QueryCampaignsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the query campaigns params
func (*QueryCampaignsParams) SetContext ¶
func (o *QueryCampaignsParams) SetContext(ctx context.Context)
SetContext adds the context to the query campaigns params
func (*QueryCampaignsParams) SetHTTPClient ¶
func (o *QueryCampaignsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query campaigns params
func (*QueryCampaignsParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *QueryCampaignsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the query campaigns params
func (*QueryCampaignsParams) SetLimit ¶
func (o *QueryCampaignsParams) SetLimit(limit *int32)
SetLimit adds the limit to the query campaigns params
func (*QueryCampaignsParams) SetName ¶
func (o *QueryCampaignsParams) SetName(name *string)
SetName adds the name to the query campaigns params
func (*QueryCampaignsParams) SetNamespace ¶
func (o *QueryCampaignsParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the query campaigns params
func (*QueryCampaignsParams) SetOffset ¶
func (o *QueryCampaignsParams) SetOffset(offset *int32)
SetOffset adds the offset to the query campaigns params
func (*QueryCampaignsParams) SetTag ¶
func (o *QueryCampaignsParams) SetTag(tag *string)
SetTag adds the tag to the query campaigns params
func (*QueryCampaignsParams) SetTimeout ¶
func (o *QueryCampaignsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query campaigns params
func (*QueryCampaignsParams) WithContext ¶
func (o *QueryCampaignsParams) WithContext(ctx context.Context) *QueryCampaignsParams
WithContext adds the context to the query campaigns params
func (*QueryCampaignsParams) WithHTTPClient ¶
func (o *QueryCampaignsParams) WithHTTPClient(client *http.Client) *QueryCampaignsParams
WithHTTPClient adds the HTTPClient to the query campaigns params
func (*QueryCampaignsParams) WithLimit ¶
func (o *QueryCampaignsParams) WithLimit(limit *int32) *QueryCampaignsParams
WithLimit adds the limit to the query campaigns params
func (*QueryCampaignsParams) WithName ¶
func (o *QueryCampaignsParams) WithName(name *string) *QueryCampaignsParams
WithName adds the name to the query campaigns params
func (*QueryCampaignsParams) WithNamespace ¶
func (o *QueryCampaignsParams) WithNamespace(namespace string) *QueryCampaignsParams
WithNamespace adds the namespace to the query campaigns params
func (*QueryCampaignsParams) WithOffset ¶
func (o *QueryCampaignsParams) WithOffset(offset *int32) *QueryCampaignsParams
WithOffset adds the offset to the query campaigns params
func (*QueryCampaignsParams) WithTag ¶
func (o *QueryCampaignsParams) WithTag(tag *string) *QueryCampaignsParams
WithTag adds the tag to the query campaigns params
func (*QueryCampaignsParams) WithTimeout ¶
func (o *QueryCampaignsParams) WithTimeout(timeout time.Duration) *QueryCampaignsParams
WithTimeout adds the timeout to the query campaigns params
func (*QueryCampaignsParams) WriteToRequest ¶
func (o *QueryCampaignsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryCampaignsReader ¶
type QueryCampaignsReader struct {
// contains filtered or unexported fields
}
QueryCampaignsReader is a Reader for the QueryCampaigns structure.
func (*QueryCampaignsReader) ReadResponse ¶
func (o *QueryCampaignsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryCodesOK ¶
type QueryCodesOK struct {
Payload *platformclientmodels.CodeInfoPagingSlicedResult
}
QueryCodesOK handles this case with default header values.
successful operation
func NewQueryCodesOK ¶
func NewQueryCodesOK() *QueryCodesOK
NewQueryCodesOK creates a QueryCodesOK with default headers values
func (*QueryCodesOK) Error ¶
func (o *QueryCodesOK) Error() string
func (*QueryCodesOK) GetPayload ¶
func (o *QueryCodesOK) GetPayload() *platformclientmodels.CodeInfoPagingSlicedResult
func (*QueryCodesOK) ToJSONString ¶ added in v0.25.0
func (o *QueryCodesOK) ToJSONString() string
type QueryCodesParams ¶
type QueryCodesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string /*ActiveOnly*/ ActiveOnly *bool /*BatchNo*/ BatchNo *int32 /*Code*/ Code *string /*Limit*/ Limit *int32 /*Offset*/ Offset *int32 AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryCodesParams contains all the parameters to send to the API endpoint for the query codes operation typically these are written to a http.Request
func NewQueryCodesParams ¶
func NewQueryCodesParams() *QueryCodesParams
NewQueryCodesParams creates a new QueryCodesParams object with the default values initialized.
func NewQueryCodesParamsWithContext ¶
func NewQueryCodesParamsWithContext(ctx context.Context) *QueryCodesParams
NewQueryCodesParamsWithContext creates a new QueryCodesParams object with the default values initialized, and the ability to set a context for a request
func NewQueryCodesParamsWithHTTPClient ¶
func NewQueryCodesParamsWithHTTPClient(client *http.Client) *QueryCodesParams
NewQueryCodesParamsWithHTTPClient creates a new QueryCodesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQueryCodesParamsWithTimeout ¶
func NewQueryCodesParamsWithTimeout(timeout time.Duration) *QueryCodesParams
NewQueryCodesParamsWithTimeout creates a new QueryCodesParams object with the default values initialized, and the ability to set a timeout on a request
func (*QueryCodesParams) SetActiveOnly ¶
func (o *QueryCodesParams) SetActiveOnly(activeOnly *bool)
SetActiveOnly adds the activeOnly to the query codes params
func (*QueryCodesParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *QueryCodesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the query codes params
func (*QueryCodesParams) SetBatchNo ¶
func (o *QueryCodesParams) SetBatchNo(batchNo *int32)
SetBatchNo adds the batchNo to the query codes params
func (*QueryCodesParams) SetCampaignID ¶
func (o *QueryCodesParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the query codes params
func (*QueryCodesParams) SetCode ¶
func (o *QueryCodesParams) SetCode(code *string)
SetCode adds the code to the query codes params
func (*QueryCodesParams) SetContext ¶
func (o *QueryCodesParams) SetContext(ctx context.Context)
SetContext adds the context to the query codes params
func (*QueryCodesParams) SetHTTPClient ¶
func (o *QueryCodesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query codes params
func (*QueryCodesParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *QueryCodesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the query codes params
func (*QueryCodesParams) SetLimit ¶
func (o *QueryCodesParams) SetLimit(limit *int32)
SetLimit adds the limit to the query codes params
func (*QueryCodesParams) SetNamespace ¶
func (o *QueryCodesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the query codes params
func (*QueryCodesParams) SetOffset ¶
func (o *QueryCodesParams) SetOffset(offset *int32)
SetOffset adds the offset to the query codes params
func (*QueryCodesParams) SetTimeout ¶
func (o *QueryCodesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query codes params
func (*QueryCodesParams) WithActiveOnly ¶
func (o *QueryCodesParams) WithActiveOnly(activeOnly *bool) *QueryCodesParams
WithActiveOnly adds the activeOnly to the query codes params
func (*QueryCodesParams) WithBatchNo ¶
func (o *QueryCodesParams) WithBatchNo(batchNo *int32) *QueryCodesParams
WithBatchNo adds the batchNo to the query codes params
func (*QueryCodesParams) WithCampaignID ¶
func (o *QueryCodesParams) WithCampaignID(campaignID string) *QueryCodesParams
WithCampaignID adds the campaignID to the query codes params
func (*QueryCodesParams) WithCode ¶
func (o *QueryCodesParams) WithCode(code *string) *QueryCodesParams
WithCode adds the code to the query codes params
func (*QueryCodesParams) WithContext ¶
func (o *QueryCodesParams) WithContext(ctx context.Context) *QueryCodesParams
WithContext adds the context to the query codes params
func (*QueryCodesParams) WithHTTPClient ¶
func (o *QueryCodesParams) WithHTTPClient(client *http.Client) *QueryCodesParams
WithHTTPClient adds the HTTPClient to the query codes params
func (*QueryCodesParams) WithLimit ¶
func (o *QueryCodesParams) WithLimit(limit *int32) *QueryCodesParams
WithLimit adds the limit to the query codes params
func (*QueryCodesParams) WithNamespace ¶
func (o *QueryCodesParams) WithNamespace(namespace string) *QueryCodesParams
WithNamespace adds the namespace to the query codes params
func (*QueryCodesParams) WithOffset ¶
func (o *QueryCodesParams) WithOffset(offset *int32) *QueryCodesParams
WithOffset adds the offset to the query codes params
func (*QueryCodesParams) WithTimeout ¶
func (o *QueryCodesParams) WithTimeout(timeout time.Duration) *QueryCodesParams
WithTimeout adds the timeout to the query codes params
func (*QueryCodesParams) WriteToRequest ¶
func (o *QueryCodesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryCodesReader ¶
type QueryCodesReader struct {
// contains filtered or unexported fields
}
QueryCodesReader is a Reader for the QueryCodes structure.
func (*QueryCodesReader) ReadResponse ¶
func (o *QueryCodesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryRedeemHistoryOK ¶
type QueryRedeemHistoryOK struct {
Payload *platformclientmodels.RedeemHistoryPagingSlicedResult
}
QueryRedeemHistoryOK handles this case with default header values.
successful operation
func NewQueryRedeemHistoryOK ¶
func NewQueryRedeemHistoryOK() *QueryRedeemHistoryOK
NewQueryRedeemHistoryOK creates a QueryRedeemHistoryOK with default headers values
func (*QueryRedeemHistoryOK) Error ¶
func (o *QueryRedeemHistoryOK) Error() string
func (*QueryRedeemHistoryOK) GetPayload ¶
func (o *QueryRedeemHistoryOK) GetPayload() *platformclientmodels.RedeemHistoryPagingSlicedResult
func (*QueryRedeemHistoryOK) ToJSONString ¶ added in v0.25.0
func (o *QueryRedeemHistoryOK) ToJSONString() string
type QueryRedeemHistoryParams ¶
type QueryRedeemHistoryParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string /*Code*/ Code *string /*Limit*/ Limit *int32 /*Offset*/ Offset *int32 /*UserID*/ UserID *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryRedeemHistoryParams contains all the parameters to send to the API endpoint for the query redeem history operation typically these are written to a http.Request
func NewQueryRedeemHistoryParams ¶
func NewQueryRedeemHistoryParams() *QueryRedeemHistoryParams
NewQueryRedeemHistoryParams creates a new QueryRedeemHistoryParams object with the default values initialized.
func NewQueryRedeemHistoryParamsWithContext ¶
func NewQueryRedeemHistoryParamsWithContext(ctx context.Context) *QueryRedeemHistoryParams
NewQueryRedeemHistoryParamsWithContext creates a new QueryRedeemHistoryParams object with the default values initialized, and the ability to set a context for a request
func NewQueryRedeemHistoryParamsWithHTTPClient ¶
func NewQueryRedeemHistoryParamsWithHTTPClient(client *http.Client) *QueryRedeemHistoryParams
NewQueryRedeemHistoryParamsWithHTTPClient creates a new QueryRedeemHistoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewQueryRedeemHistoryParamsWithTimeout ¶
func NewQueryRedeemHistoryParamsWithTimeout(timeout time.Duration) *QueryRedeemHistoryParams
NewQueryRedeemHistoryParamsWithTimeout creates a new QueryRedeemHistoryParams object with the default values initialized, and the ability to set a timeout on a request
func (*QueryRedeemHistoryParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *QueryRedeemHistoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the query redeem history params
func (*QueryRedeemHistoryParams) SetCampaignID ¶
func (o *QueryRedeemHistoryParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the query redeem history params
func (*QueryRedeemHistoryParams) SetCode ¶
func (o *QueryRedeemHistoryParams) SetCode(code *string)
SetCode adds the code to the query redeem history params
func (*QueryRedeemHistoryParams) SetContext ¶
func (o *QueryRedeemHistoryParams) SetContext(ctx context.Context)
SetContext adds the context to the query redeem history params
func (*QueryRedeemHistoryParams) SetHTTPClient ¶
func (o *QueryRedeemHistoryParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query redeem history params
func (*QueryRedeemHistoryParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *QueryRedeemHistoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the query redeem history params
func (*QueryRedeemHistoryParams) SetLimit ¶
func (o *QueryRedeemHistoryParams) SetLimit(limit *int32)
SetLimit adds the limit to the query redeem history params
func (*QueryRedeemHistoryParams) SetNamespace ¶
func (o *QueryRedeemHistoryParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the query redeem history params
func (*QueryRedeemHistoryParams) SetOffset ¶
func (o *QueryRedeemHistoryParams) SetOffset(offset *int32)
SetOffset adds the offset to the query redeem history params
func (*QueryRedeemHistoryParams) SetTimeout ¶
func (o *QueryRedeemHistoryParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query redeem history params
func (*QueryRedeemHistoryParams) SetUserID ¶
func (o *QueryRedeemHistoryParams) SetUserID(userID *string)
SetUserID adds the userId to the query redeem history params
func (*QueryRedeemHistoryParams) WithCampaignID ¶
func (o *QueryRedeemHistoryParams) WithCampaignID(campaignID string) *QueryRedeemHistoryParams
WithCampaignID adds the campaignID to the query redeem history params
func (*QueryRedeemHistoryParams) WithCode ¶
func (o *QueryRedeemHistoryParams) WithCode(code *string) *QueryRedeemHistoryParams
WithCode adds the code to the query redeem history params
func (*QueryRedeemHistoryParams) WithContext ¶
func (o *QueryRedeemHistoryParams) WithContext(ctx context.Context) *QueryRedeemHistoryParams
WithContext adds the context to the query redeem history params
func (*QueryRedeemHistoryParams) WithHTTPClient ¶
func (o *QueryRedeemHistoryParams) WithHTTPClient(client *http.Client) *QueryRedeemHistoryParams
WithHTTPClient adds the HTTPClient to the query redeem history params
func (*QueryRedeemHistoryParams) WithLimit ¶
func (o *QueryRedeemHistoryParams) WithLimit(limit *int32) *QueryRedeemHistoryParams
WithLimit adds the limit to the query redeem history params
func (*QueryRedeemHistoryParams) WithNamespace ¶
func (o *QueryRedeemHistoryParams) WithNamespace(namespace string) *QueryRedeemHistoryParams
WithNamespace adds the namespace to the query redeem history params
func (*QueryRedeemHistoryParams) WithOffset ¶
func (o *QueryRedeemHistoryParams) WithOffset(offset *int32) *QueryRedeemHistoryParams
WithOffset adds the offset to the query redeem history params
func (*QueryRedeemHistoryParams) WithTimeout ¶
func (o *QueryRedeemHistoryParams) WithTimeout(timeout time.Duration) *QueryRedeemHistoryParams
WithTimeout adds the timeout to the query redeem history params
func (*QueryRedeemHistoryParams) WithUserID ¶
func (o *QueryRedeemHistoryParams) WithUserID(userID *string) *QueryRedeemHistoryParams
WithUserID adds the userID to the query redeem history params
func (*QueryRedeemHistoryParams) WriteToRequest ¶
func (o *QueryRedeemHistoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryRedeemHistoryReader ¶
type QueryRedeemHistoryReader struct {
// contains filtered or unexported fields
}
QueryRedeemHistoryReader is a Reader for the QueryRedeemHistory structure.
func (*QueryRedeemHistoryReader) ReadResponse ¶
func (o *QueryRedeemHistoryReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCampaignConflict ¶
type UpdateCampaignConflict struct {
Payload *platformclientmodels.ErrorEntity
}
UpdateCampaignConflict handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37171</td><td>Campaign [{name}] already exists in namespace [{namespace}]</td></tr></table>
func NewUpdateCampaignConflict ¶
func NewUpdateCampaignConflict() *UpdateCampaignConflict
NewUpdateCampaignConflict creates a UpdateCampaignConflict with default headers values
func (*UpdateCampaignConflict) Error ¶
func (o *UpdateCampaignConflict) Error() string
func (*UpdateCampaignConflict) GetPayload ¶
func (o *UpdateCampaignConflict) GetPayload() *platformclientmodels.ErrorEntity
func (*UpdateCampaignConflict) ToJSONString ¶ added in v0.25.0
func (o *UpdateCampaignConflict) ToJSONString() string
type UpdateCampaignNotFound ¶
type UpdateCampaignNotFound struct {
Payload *platformclientmodels.ErrorEntity
}
UpdateCampaignNotFound handles this case with default header values.
<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37141</td><td>Campaign [{campaignId}] does not exist in namespace [{namespace}]</td></tr></table>
func NewUpdateCampaignNotFound ¶
func NewUpdateCampaignNotFound() *UpdateCampaignNotFound
NewUpdateCampaignNotFound creates a UpdateCampaignNotFound with default headers values
func (*UpdateCampaignNotFound) Error ¶
func (o *UpdateCampaignNotFound) Error() string
func (*UpdateCampaignNotFound) GetPayload ¶
func (o *UpdateCampaignNotFound) GetPayload() *platformclientmodels.ErrorEntity
func (*UpdateCampaignNotFound) ToJSONString ¶ added in v0.25.0
func (o *UpdateCampaignNotFound) ToJSONString() string
type UpdateCampaignOK ¶
type UpdateCampaignOK struct {
Payload *platformclientmodels.CampaignInfo
}
UpdateCampaignOK handles this case with default header values.
successful operation
func NewUpdateCampaignOK ¶
func NewUpdateCampaignOK() *UpdateCampaignOK
NewUpdateCampaignOK creates a UpdateCampaignOK with default headers values
func (*UpdateCampaignOK) Error ¶
func (o *UpdateCampaignOK) Error() string
func (*UpdateCampaignOK) GetPayload ¶
func (o *UpdateCampaignOK) GetPayload() *platformclientmodels.CampaignInfo
func (*UpdateCampaignOK) ToJSONString ¶ added in v0.25.0
func (o *UpdateCampaignOK) ToJSONString() string
type UpdateCampaignParams ¶
type UpdateCampaignParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *platformclientmodels.CampaignUpdate /*CampaignID*/ CampaignID string /*Namespace*/ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateCampaignParams contains all the parameters to send to the API endpoint for the update campaign operation typically these are written to a http.Request
func NewUpdateCampaignParams ¶
func NewUpdateCampaignParams() *UpdateCampaignParams
NewUpdateCampaignParams creates a new UpdateCampaignParams object with the default values initialized.
func NewUpdateCampaignParamsWithContext ¶
func NewUpdateCampaignParamsWithContext(ctx context.Context) *UpdateCampaignParams
NewUpdateCampaignParamsWithContext creates a new UpdateCampaignParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateCampaignParamsWithHTTPClient ¶
func NewUpdateCampaignParamsWithHTTPClient(client *http.Client) *UpdateCampaignParams
NewUpdateCampaignParamsWithHTTPClient creates a new UpdateCampaignParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateCampaignParamsWithTimeout ¶
func NewUpdateCampaignParamsWithTimeout(timeout time.Duration) *UpdateCampaignParams
NewUpdateCampaignParamsWithTimeout creates a new UpdateCampaignParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateCampaignParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *UpdateCampaignParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the update campaign params
func (*UpdateCampaignParams) SetBody ¶
func (o *UpdateCampaignParams) SetBody(body *platformclientmodels.CampaignUpdate)
SetBody adds the body to the update campaign params
func (*UpdateCampaignParams) SetCampaignID ¶
func (o *UpdateCampaignParams) SetCampaignID(campaignID string)
SetCampaignID adds the campaignId to the update campaign params
func (*UpdateCampaignParams) SetContext ¶
func (o *UpdateCampaignParams) SetContext(ctx context.Context)
SetContext adds the context to the update campaign params
func (*UpdateCampaignParams) SetHTTPClient ¶
func (o *UpdateCampaignParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update campaign params
func (*UpdateCampaignParams) SetHTTPClientTransport ¶ added in v0.19.0
func (o *UpdateCampaignParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the update campaign params
func (*UpdateCampaignParams) SetNamespace ¶
func (o *UpdateCampaignParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the update campaign params
func (*UpdateCampaignParams) SetTimeout ¶
func (o *UpdateCampaignParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update campaign params
func (*UpdateCampaignParams) WithBody ¶
func (o *UpdateCampaignParams) WithBody(body *platformclientmodels.CampaignUpdate) *UpdateCampaignParams
WithBody adds the body to the update campaign params
func (*UpdateCampaignParams) WithCampaignID ¶
func (o *UpdateCampaignParams) WithCampaignID(campaignID string) *UpdateCampaignParams
WithCampaignID adds the campaignID to the update campaign params
func (*UpdateCampaignParams) WithContext ¶
func (o *UpdateCampaignParams) WithContext(ctx context.Context) *UpdateCampaignParams
WithContext adds the context to the update campaign params
func (*UpdateCampaignParams) WithHTTPClient ¶
func (o *UpdateCampaignParams) WithHTTPClient(client *http.Client) *UpdateCampaignParams
WithHTTPClient adds the HTTPClient to the update campaign params
func (*UpdateCampaignParams) WithNamespace ¶
func (o *UpdateCampaignParams) WithNamespace(namespace string) *UpdateCampaignParams
WithNamespace adds the namespace to the update campaign params
func (*UpdateCampaignParams) WithTimeout ¶
func (o *UpdateCampaignParams) WithTimeout(timeout time.Duration) *UpdateCampaignParams
WithTimeout adds the timeout to the update campaign params
func (*UpdateCampaignParams) WriteToRequest ¶
func (o *UpdateCampaignParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateCampaignReader ¶
type UpdateCampaignReader struct {
// contains filtered or unexported fields
}
UpdateCampaignReader is a Reader for the UpdateCampaign structure.
func (*UpdateCampaignReader) ReadResponse ¶
func (o *UpdateCampaignReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCampaignUnprocessableEntity ¶
type UpdateCampaignUnprocessableEntity struct {
Payload *platformclientmodels.ValidationErrorEntity
}
UpdateCampaignUnprocessableEntity 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 NewUpdateCampaignUnprocessableEntity ¶
func NewUpdateCampaignUnprocessableEntity() *UpdateCampaignUnprocessableEntity
NewUpdateCampaignUnprocessableEntity creates a UpdateCampaignUnprocessableEntity with default headers values
func (*UpdateCampaignUnprocessableEntity) Error ¶
func (o *UpdateCampaignUnprocessableEntity) Error() string
func (*UpdateCampaignUnprocessableEntity) GetPayload ¶
func (o *UpdateCampaignUnprocessableEntity) GetPayload() *platformclientmodels.ValidationErrorEntity
func (*UpdateCampaignUnprocessableEntity) ToJSONString ¶ added in v0.25.0
func (o *UpdateCampaignUnprocessableEntity) ToJSONString() string
Source Files ¶
- apply_user_redemption_parameters.go
- apply_user_redemption_responses.go
- bulk_disable_codes_parameters.go
- bulk_disable_codes_responses.go
- bulk_enable_codes_parameters.go
- bulk_enable_codes_responses.go
- campaign_client.go
- create_campaign_parameters.go
- create_campaign_responses.go
- create_codes_parameters.go
- create_codes_responses.go
- disable_code_parameters.go
- disable_code_responses.go
- download_parameters.go
- download_responses.go
- enable_code_parameters.go
- enable_code_responses.go
- get_campaign_dynamic_parameters.go
- get_campaign_dynamic_responses.go
- get_campaign_parameters.go
- get_campaign_responses.go
- get_code_parameters.go
- get_code_responses.go
- query_campaigns_parameters.go
- query_campaigns_responses.go
- query_codes_parameters.go
- query_codes_responses.go
- query_redeem_history_parameters.go
- query_redeem_history_responses.go
- update_campaign_parameters.go
- update_campaign_responses.go