fulfillment

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	QueryFulfillmentHistoriesFAILConstant    = "FAIL"
	QueryFulfillmentHistoriesSUCCESSConstant = "SUCCESS"
)

Get the enum in QueryFulfillmentHistoriesParams

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for fulfillment API

func (*Client) FulfillItem deprecated

Deprecated: Use FulfillItemShort instead.

FulfillItem fulfills item

Fulfill item.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) FulfillItemShort added in v0.8.0

func (a *Client) FulfillItemShort(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, error)

FulfillItemShort fulfills item

Fulfill item.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) FulfillRewards deprecated added in v0.10.0

Deprecated: Use FulfillRewardsShort instead.

FulfillRewards fulfills rewards

<b>[SERVICE COMMUNICATION ONLY]</b> Fulfill rewards.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) FulfillRewardsShort added in v0.10.0

func (a *Client) FulfillRewardsShort(params *FulfillRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsNoContent, error)

FulfillRewardsShort fulfills rewards

<b>[SERVICE COMMUNICATION ONLY]</b> Fulfill rewards.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) PublicRedeemCode deprecated

Deprecated: Use PublicRedeemCodeShort instead.

PublicRedeemCode redeems campaign code

Redeem campaign code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) PublicRedeemCodeShort added in v0.8.0

func (a *Client) PublicRedeemCodeShort(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, error)

PublicRedeemCodeShort redeems campaign code

Redeem campaign code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) QueryFulfillmentHistories deprecated

func (a *Client) QueryFulfillmentHistories(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)

Deprecated: Use QueryFulfillmentHistoriesShort instead.

QueryFulfillmentHistories queries fulfillment histories

Query fulfillment histories in a namespace.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:FULFILLMENT", action=2 (READ)</li><li><i>Returns</i>: query fulfillment history</li></ul>

func (*Client) QueryFulfillmentHistoriesShort added in v0.8.0

func (a *Client) QueryFulfillmentHistoriesShort(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)

QueryFulfillmentHistoriesShort queries fulfillment histories

Query fulfillment histories in a namespace.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:FULFILLMENT", action=2 (READ)</li><li><i>Returns</i>: query fulfillment history</li></ul>

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

Deprecated: Use RedeemCodeShort instead.

RedeemCode redeems campaign code

Redeem campaign code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) RedeemCodeShort added in v0.8.0

func (a *Client) RedeemCodeShort(params *RedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*RedeemCodeOK, error)

RedeemCodeShort redeems campaign code

Redeem campaign code.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)</li><li><i>Returns</i>: fulfillment result</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	FulfillItem(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, *FulfillItemBadRequest, *FulfillItemNotFound, *FulfillItemConflict, error)
	FulfillItemShort(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, error)
	FulfillRewards(params *FulfillRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsNoContent, *FulfillRewardsBadRequest, *FulfillRewardsNotFound, *FulfillRewardsConflict, error)
	FulfillRewardsShort(params *FulfillRewardsParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsNoContent, error)
	PublicRedeemCode(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, *PublicRedeemCodeBadRequest, *PublicRedeemCodeNotFound, *PublicRedeemCodeConflict, error)
	PublicRedeemCodeShort(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, error)
	QueryFulfillmentHistories(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)
	QueryFulfillmentHistoriesShort(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)
	RedeemCode(params *RedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*RedeemCodeOK, *RedeemCodeBadRequest, *RedeemCodeNotFound, *RedeemCodeConflict, error)
	RedeemCodeShort(params *RedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*RedeemCodeOK, 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 fulfillment API client.

type FulfillItemBadRequest

type FulfillItemBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillItemBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr><tr><td>38122</td><td>Subscription endDate required</td></tr></table>

func NewFulfillItemBadRequest

func NewFulfillItemBadRequest() *FulfillItemBadRequest

NewFulfillItemBadRequest creates a FulfillItemBadRequest with default headers values

func (*FulfillItemBadRequest) Error

func (o *FulfillItemBadRequest) Error() string

func (*FulfillItemBadRequest) GetPayload

func (*FulfillItemBadRequest) ToJSONString added in v0.25.0

func (o *FulfillItemBadRequest) ToJSONString() string

type FulfillItemConflict

type FulfillItemConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillItemConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20006</td><td>optimistic lock</td></tr></table>

func NewFulfillItemConflict

func NewFulfillItemConflict() *FulfillItemConflict

NewFulfillItemConflict creates a FulfillItemConflict with default headers values

func (*FulfillItemConflict) Error

func (o *FulfillItemConflict) Error() string

func (*FulfillItemConflict) GetPayload

func (*FulfillItemConflict) ToJSONString added in v0.25.0

func (o *FulfillItemConflict) ToJSONString() string

type FulfillItemNotFound

type FulfillItemNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillItemNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewFulfillItemNotFound

func NewFulfillItemNotFound() *FulfillItemNotFound

NewFulfillItemNotFound creates a FulfillItemNotFound with default headers values

func (*FulfillItemNotFound) Error

func (o *FulfillItemNotFound) Error() string

func (*FulfillItemNotFound) GetPayload

func (*FulfillItemNotFound) ToJSONString added in v0.25.0

func (o *FulfillItemNotFound) ToJSONString() string

type FulfillItemOK

type FulfillItemOK struct {
	Payload *platformclientmodels.FulfillmentResult
}

FulfillItemOK handles this case with default header values.

successful operation

func NewFulfillItemOK

func NewFulfillItemOK() *FulfillItemOK

NewFulfillItemOK creates a FulfillItemOK with default headers values

func (*FulfillItemOK) Error

func (o *FulfillItemOK) Error() string

func (*FulfillItemOK) GetPayload

func (*FulfillItemOK) ToJSONString added in v0.25.0

func (o *FulfillItemOK) ToJSONString() string

type FulfillItemParams

type FulfillItemParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillmentRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

FulfillItemParams contains all the parameters to send to the API endpoint for the fulfill item operation typically these are written to a http.Request

func NewFulfillItemParams

func NewFulfillItemParams() *FulfillItemParams

NewFulfillItemParams creates a new FulfillItemParams object with the default values initialized.

func NewFulfillItemParamsWithContext

func NewFulfillItemParamsWithContext(ctx context.Context) *FulfillItemParams

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

func NewFulfillItemParamsWithHTTPClient

func NewFulfillItemParamsWithHTTPClient(client *http.Client) *FulfillItemParams

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

func NewFulfillItemParamsWithTimeout

func NewFulfillItemParamsWithTimeout(timeout time.Duration) *FulfillItemParams

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

func (*FulfillItemParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the fulfill item params

func (*FulfillItemParams) SetBody

SetBody adds the body to the fulfill item params

func (*FulfillItemParams) SetContext

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

SetContext adds the context to the fulfill item params

func (*FulfillItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill item params

func (*FulfillItemParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the fulfill item params

func (*FulfillItemParams) SetNamespace

func (o *FulfillItemParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the fulfill item params

func (*FulfillItemParams) SetTimeout

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

SetTimeout adds the timeout to the fulfill item params

func (*FulfillItemParams) SetUserID

func (o *FulfillItemParams) SetUserID(userID string)

SetUserID adds the userId to the fulfill item params

func (*FulfillItemParams) WithBody

WithBody adds the body to the fulfill item params

func (*FulfillItemParams) WithContext

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

WithContext adds the context to the fulfill item params

func (*FulfillItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the fulfill item params

func (*FulfillItemParams) WithNamespace

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

WithNamespace adds the namespace to the fulfill item params

func (*FulfillItemParams) WithTimeout

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

WithTimeout adds the timeout to the fulfill item params

func (*FulfillItemParams) WithUserID

func (o *FulfillItemParams) WithUserID(userID string) *FulfillItemParams

WithUserID adds the userID to the fulfill item params

func (*FulfillItemParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FulfillItemReader

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

FulfillItemReader is a Reader for the FulfillItem structure.

func (*FulfillItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FulfillRewardsBadRequest added in v0.10.0

type FulfillRewardsBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr></table>

func NewFulfillRewardsBadRequest added in v0.10.0

func NewFulfillRewardsBadRequest() *FulfillRewardsBadRequest

NewFulfillRewardsBadRequest creates a FulfillRewardsBadRequest with default headers values

func (*FulfillRewardsBadRequest) Error added in v0.10.0

func (o *FulfillRewardsBadRequest) Error() string

func (*FulfillRewardsBadRequest) GetPayload added in v0.10.0

func (*FulfillRewardsBadRequest) ToJSONString added in v0.25.0

func (o *FulfillRewardsBadRequest) ToJSONString() string

type FulfillRewardsConflict added in v0.10.0

type FulfillRewardsConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20006</td><td>optimistic lock</td></tr></table>

func NewFulfillRewardsConflict added in v0.10.0

func NewFulfillRewardsConflict() *FulfillRewardsConflict

NewFulfillRewardsConflict creates a FulfillRewardsConflict with default headers values

func (*FulfillRewardsConflict) Error added in v0.10.0

func (o *FulfillRewardsConflict) Error() string

func (*FulfillRewardsConflict) GetPayload added in v0.10.0

func (*FulfillRewardsConflict) ToJSONString added in v0.25.0

func (o *FulfillRewardsConflict) ToJSONString() string

type FulfillRewardsNoContent added in v0.10.0

type FulfillRewardsNoContent struct {
}

FulfillRewardsNoContent handles this case with default header values.

fulfill successfully

func NewFulfillRewardsNoContent added in v0.10.0

func NewFulfillRewardsNoContent() *FulfillRewardsNoContent

NewFulfillRewardsNoContent creates a FulfillRewardsNoContent with default headers values

func (*FulfillRewardsNoContent) Error added in v0.10.0

func (o *FulfillRewardsNoContent) Error() string

type FulfillRewardsNotFound added in v0.10.0

type FulfillRewardsNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewFulfillRewardsNotFound added in v0.10.0

func NewFulfillRewardsNotFound() *FulfillRewardsNotFound

NewFulfillRewardsNotFound creates a FulfillRewardsNotFound with default headers values

func (*FulfillRewardsNotFound) Error added in v0.10.0

func (o *FulfillRewardsNotFound) Error() string

func (*FulfillRewardsNotFound) GetPayload added in v0.10.0

func (*FulfillRewardsNotFound) ToJSONString added in v0.25.0

func (o *FulfillRewardsNotFound) ToJSONString() string

type FulfillRewardsParams added in v0.10.0

type FulfillRewardsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.RewardsRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

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

func NewFulfillRewardsParams added in v0.10.0

func NewFulfillRewardsParams() *FulfillRewardsParams

NewFulfillRewardsParams creates a new FulfillRewardsParams object with the default values initialized.

func NewFulfillRewardsParamsWithContext added in v0.10.0

func NewFulfillRewardsParamsWithContext(ctx context.Context) *FulfillRewardsParams

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

func NewFulfillRewardsParamsWithHTTPClient added in v0.10.0

func NewFulfillRewardsParamsWithHTTPClient(client *http.Client) *FulfillRewardsParams

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

func NewFulfillRewardsParamsWithTimeout added in v0.10.0

func NewFulfillRewardsParamsWithTimeout(timeout time.Duration) *FulfillRewardsParams

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

func (*FulfillRewardsParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the fulfill rewards params

func (*FulfillRewardsParams) SetBody added in v0.10.0

SetBody adds the body to the fulfill rewards params

func (*FulfillRewardsParams) SetContext added in v0.10.0

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

SetContext adds the context to the fulfill rewards params

func (*FulfillRewardsParams) SetHTTPClient added in v0.10.0

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

SetHTTPClient adds the HTTPClient to the fulfill rewards params

func (*FulfillRewardsParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the fulfill rewards params

func (*FulfillRewardsParams) SetNamespace added in v0.10.0

func (o *FulfillRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the fulfill rewards params

func (*FulfillRewardsParams) SetTimeout added in v0.10.0

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

SetTimeout adds the timeout to the fulfill rewards params

func (*FulfillRewardsParams) SetUserID added in v0.10.0

func (o *FulfillRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the fulfill rewards params

func (*FulfillRewardsParams) WithBody added in v0.10.0

WithBody adds the body to the fulfill rewards params

func (*FulfillRewardsParams) WithContext added in v0.10.0

WithContext adds the context to the fulfill rewards params

func (*FulfillRewardsParams) WithHTTPClient added in v0.10.0

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

WithHTTPClient adds the HTTPClient to the fulfill rewards params

func (*FulfillRewardsParams) WithNamespace added in v0.10.0

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

WithNamespace adds the namespace to the fulfill rewards params

func (*FulfillRewardsParams) WithTimeout added in v0.10.0

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

WithTimeout adds the timeout to the fulfill rewards params

func (*FulfillRewardsParams) WithUserID added in v0.10.0

func (o *FulfillRewardsParams) WithUserID(userID string) *FulfillRewardsParams

WithUserID adds the userID to the fulfill rewards params

func (*FulfillRewardsParams) WriteToRequest added in v0.10.0

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

WriteToRequest writes these params to a swagger request

type FulfillRewardsReader added in v0.10.0

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

FulfillRewardsReader is a Reader for the FulfillRewards structure.

func (*FulfillRewardsReader) ReadResponse added in v0.10.0

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

ReadResponse reads a server response into the received o.

type PublicRedeemCodeBadRequest

type PublicRedeemCodeBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicRedeemCodeBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr></table>

func NewPublicRedeemCodeBadRequest

func NewPublicRedeemCodeBadRequest() *PublicRedeemCodeBadRequest

NewPublicRedeemCodeBadRequest creates a PublicRedeemCodeBadRequest with default headers values

func (*PublicRedeemCodeBadRequest) Error

func (*PublicRedeemCodeBadRequest) GetPayload

func (*PublicRedeemCodeBadRequest) ToJSONString added in v0.25.0

func (o *PublicRedeemCodeBadRequest) ToJSONString() string

type PublicRedeemCodeConflict

type PublicRedeemCodeConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicRedeemCodeConflict 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><tr><td>20006</td><td>optimistic lock</td></tr><tr><td>31177</td><td>Permanent item already owned</td></tr></table>

func NewPublicRedeemCodeConflict

func NewPublicRedeemCodeConflict() *PublicRedeemCodeConflict

NewPublicRedeemCodeConflict creates a PublicRedeemCodeConflict with default headers values

func (*PublicRedeemCodeConflict) Error

func (o *PublicRedeemCodeConflict) Error() string

func (*PublicRedeemCodeConflict) GetPayload

func (*PublicRedeemCodeConflict) ToJSONString added in v0.25.0

func (o *PublicRedeemCodeConflict) ToJSONString() string

type PublicRedeemCodeNotFound

type PublicRedeemCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicRedeemCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicRedeemCodeNotFound

func NewPublicRedeemCodeNotFound() *PublicRedeemCodeNotFound

NewPublicRedeemCodeNotFound creates a PublicRedeemCodeNotFound with default headers values

func (*PublicRedeemCodeNotFound) Error

func (o *PublicRedeemCodeNotFound) Error() string

func (*PublicRedeemCodeNotFound) GetPayload

func (*PublicRedeemCodeNotFound) ToJSONString added in v0.25.0

func (o *PublicRedeemCodeNotFound) ToJSONString() string

type PublicRedeemCodeOK

type PublicRedeemCodeOK struct {
	Payload *platformclientmodels.FulfillmentResult
}

PublicRedeemCodeOK handles this case with default header values.

successful operation

func NewPublicRedeemCodeOK

func NewPublicRedeemCodeOK() *PublicRedeemCodeOK

NewPublicRedeemCodeOK creates a PublicRedeemCodeOK with default headers values

func (*PublicRedeemCodeOK) Error

func (o *PublicRedeemCodeOK) Error() string

func (*PublicRedeemCodeOK) GetPayload

func (*PublicRedeemCodeOK) ToJSONString added in v0.25.0

func (o *PublicRedeemCodeOK) ToJSONString() string

type PublicRedeemCodeParams

type PublicRedeemCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillCodeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

PublicRedeemCodeParams contains all the parameters to send to the API endpoint for the public redeem code operation typically these are written to a http.Request

func NewPublicRedeemCodeParams

func NewPublicRedeemCodeParams() *PublicRedeemCodeParams

NewPublicRedeemCodeParams creates a new PublicRedeemCodeParams object with the default values initialized.

func NewPublicRedeemCodeParamsWithContext

func NewPublicRedeemCodeParamsWithContext(ctx context.Context) *PublicRedeemCodeParams

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

func NewPublicRedeemCodeParamsWithHTTPClient

func NewPublicRedeemCodeParamsWithHTTPClient(client *http.Client) *PublicRedeemCodeParams

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

func NewPublicRedeemCodeParamsWithTimeout

func NewPublicRedeemCodeParamsWithTimeout(timeout time.Duration) *PublicRedeemCodeParams

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

func (*PublicRedeemCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the public redeem code params

func (*PublicRedeemCodeParams) SetBody

SetBody adds the body to the public redeem code params

func (*PublicRedeemCodeParams) SetContext

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

SetContext adds the context to the public redeem code params

func (*PublicRedeemCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public redeem code params

func (*PublicRedeemCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the public redeem code params

func (*PublicRedeemCodeParams) SetNamespace

func (o *PublicRedeemCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public redeem code params

func (*PublicRedeemCodeParams) SetTimeout

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

SetTimeout adds the timeout to the public redeem code params

func (*PublicRedeemCodeParams) SetUserID

func (o *PublicRedeemCodeParams) SetUserID(userID string)

SetUserID adds the userId to the public redeem code params

func (*PublicRedeemCodeParams) WithBody

WithBody adds the body to the public redeem code params

func (*PublicRedeemCodeParams) WithContext

WithContext adds the context to the public redeem code params

func (*PublicRedeemCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public redeem code params

func (*PublicRedeemCodeParams) WithNamespace

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

WithNamespace adds the namespace to the public redeem code params

func (*PublicRedeemCodeParams) WithTimeout

WithTimeout adds the timeout to the public redeem code params

func (*PublicRedeemCodeParams) WithUserID

func (o *PublicRedeemCodeParams) WithUserID(userID string) *PublicRedeemCodeParams

WithUserID adds the userID to the public redeem code params

func (*PublicRedeemCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicRedeemCodeReader

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

PublicRedeemCodeReader is a Reader for the PublicRedeemCode structure.

func (*PublicRedeemCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryFulfillmentHistoriesOK

type QueryFulfillmentHistoriesOK struct {
	Payload *platformclientmodels.FulfillmentHistoryPagingSlicedResult
}

QueryFulfillmentHistoriesOK handles this case with default header values.

successful operation

func NewQueryFulfillmentHistoriesOK

func NewQueryFulfillmentHistoriesOK() *QueryFulfillmentHistoriesOK

NewQueryFulfillmentHistoriesOK creates a QueryFulfillmentHistoriesOK with default headers values

func (*QueryFulfillmentHistoriesOK) Error

func (*QueryFulfillmentHistoriesOK) GetPayload

func (*QueryFulfillmentHistoriesOK) ToJSONString added in v0.25.0

func (o *QueryFulfillmentHistoriesOK) ToJSONString() string

type QueryFulfillmentHistoriesParams

type QueryFulfillmentHistoriesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Status*/
	Status *string
	/*UserID*/
	UserID *string

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

QueryFulfillmentHistoriesParams contains all the parameters to send to the API endpoint for the query fulfillment histories operation typically these are written to a http.Request

func NewQueryFulfillmentHistoriesParams

func NewQueryFulfillmentHistoriesParams() *QueryFulfillmentHistoriesParams

NewQueryFulfillmentHistoriesParams creates a new QueryFulfillmentHistoriesParams object with the default values initialized.

func NewQueryFulfillmentHistoriesParamsWithContext

func NewQueryFulfillmentHistoriesParamsWithContext(ctx context.Context) *QueryFulfillmentHistoriesParams

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

func NewQueryFulfillmentHistoriesParamsWithHTTPClient

func NewQueryFulfillmentHistoriesParamsWithHTTPClient(client *http.Client) *QueryFulfillmentHistoriesParams

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

func NewQueryFulfillmentHistoriesParamsWithTimeout

func NewQueryFulfillmentHistoriesParamsWithTimeout(timeout time.Duration) *QueryFulfillmentHistoriesParams

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

func (*QueryFulfillmentHistoriesParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetContext

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

SetContext adds the context to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetLimit

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

SetLimit adds the limit to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetNamespace

func (o *QueryFulfillmentHistoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetOffset

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

SetOffset adds the offset to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetStatus

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

SetStatus adds the status to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetTimeout

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

SetTimeout adds the timeout to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetUserID

func (o *QueryFulfillmentHistoriesParams) SetUserID(userID *string)

SetUserID adds the userId to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithContext

WithContext adds the context to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithLimit

WithLimit adds the limit to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithNamespace

WithNamespace adds the namespace to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithOffset

WithOffset adds the offset to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithStatus

WithStatus adds the status to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithTimeout

WithTimeout adds the timeout to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WithUserID

WithUserID adds the userID to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryFulfillmentHistoriesReader

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

QueryFulfillmentHistoriesReader is a Reader for the QueryFulfillmentHistories structure.

func (*QueryFulfillmentHistoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RedeemCodeBadRequest added in v0.7.0

type RedeemCodeBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

RedeemCodeBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr></table>

func NewRedeemCodeBadRequest added in v0.7.0

func NewRedeemCodeBadRequest() *RedeemCodeBadRequest

NewRedeemCodeBadRequest creates a RedeemCodeBadRequest with default headers values

func (*RedeemCodeBadRequest) Error added in v0.7.0

func (o *RedeemCodeBadRequest) Error() string

func (*RedeemCodeBadRequest) GetPayload added in v0.7.0

func (*RedeemCodeBadRequest) ToJSONString added in v0.25.0

func (o *RedeemCodeBadRequest) ToJSONString() string

type RedeemCodeConflict added in v0.7.0

type RedeemCodeConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

RedeemCodeConflict 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><tr><td>20006</td><td>optimistic lock</td></tr><tr><td>31177</td><td>Permanent item already owned</td></tr></table>

func NewRedeemCodeConflict added in v0.7.0

func NewRedeemCodeConflict() *RedeemCodeConflict

NewRedeemCodeConflict creates a RedeemCodeConflict with default headers values

func (*RedeemCodeConflict) Error added in v0.7.0

func (o *RedeemCodeConflict) Error() string

func (*RedeemCodeConflict) GetPayload added in v0.7.0

func (*RedeemCodeConflict) ToJSONString added in v0.25.0

func (o *RedeemCodeConflict) ToJSONString() string

type RedeemCodeNotFound added in v0.7.0

type RedeemCodeNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

RedeemCodeNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>30341</td><td>Item [{itemId}] does not exist in namespace [{namespace}]</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewRedeemCodeNotFound added in v0.7.0

func NewRedeemCodeNotFound() *RedeemCodeNotFound

NewRedeemCodeNotFound creates a RedeemCodeNotFound with default headers values

func (*RedeemCodeNotFound) Error added in v0.7.0

func (o *RedeemCodeNotFound) Error() string

func (*RedeemCodeNotFound) GetPayload added in v0.7.0

func (*RedeemCodeNotFound) ToJSONString added in v0.25.0

func (o *RedeemCodeNotFound) ToJSONString() string

type RedeemCodeOK added in v0.7.0

type RedeemCodeOK struct {
	Payload *platformclientmodels.FulfillmentResult
}

RedeemCodeOK handles this case with default header values.

successful operation

func NewRedeemCodeOK added in v0.7.0

func NewRedeemCodeOK() *RedeemCodeOK

NewRedeemCodeOK creates a RedeemCodeOK with default headers values

func (*RedeemCodeOK) Error added in v0.7.0

func (o *RedeemCodeOK) Error() string

func (*RedeemCodeOK) GetPayload added in v0.7.0

func (*RedeemCodeOK) ToJSONString added in v0.25.0

func (o *RedeemCodeOK) ToJSONString() string

type RedeemCodeParams added in v0.7.0

type RedeemCodeParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.FulfillCodeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

RedeemCodeParams contains all the parameters to send to the API endpoint for the redeem code operation typically these are written to a http.Request

func NewRedeemCodeParams added in v0.7.0

func NewRedeemCodeParams() *RedeemCodeParams

NewRedeemCodeParams creates a new RedeemCodeParams object with the default values initialized.

func NewRedeemCodeParamsWithContext added in v0.7.0

func NewRedeemCodeParamsWithContext(ctx context.Context) *RedeemCodeParams

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

func NewRedeemCodeParamsWithHTTPClient added in v0.7.0

func NewRedeemCodeParamsWithHTTPClient(client *http.Client) *RedeemCodeParams

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

func NewRedeemCodeParamsWithTimeout added in v0.7.0

func NewRedeemCodeParamsWithTimeout(timeout time.Duration) *RedeemCodeParams

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

func (*RedeemCodeParams) SetAuthInfoWriter added in v0.17.0

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

SetAuthInfoWriter adds the authInfoWriter to the redeem code params

func (*RedeemCodeParams) SetBody added in v0.7.0

SetBody adds the body to the redeem code params

func (*RedeemCodeParams) SetContext added in v0.7.0

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

SetContext adds the context to the redeem code params

func (*RedeemCodeParams) SetHTTPClient added in v0.7.0

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

SetHTTPClient adds the HTTPClient to the redeem code params

func (*RedeemCodeParams) SetHTTPClientTransport added in v0.19.0

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

SetHTTPClient adds the HTTPClient Transport to the redeem code params

func (*RedeemCodeParams) SetNamespace added in v0.7.0

func (o *RedeemCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the redeem code params

func (*RedeemCodeParams) SetTimeout added in v0.7.0

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

SetTimeout adds the timeout to the redeem code params

func (*RedeemCodeParams) SetUserID added in v0.7.0

func (o *RedeemCodeParams) SetUserID(userID string)

SetUserID adds the userId to the redeem code params

func (*RedeemCodeParams) WithBody added in v0.7.0

WithBody adds the body to the redeem code params

func (*RedeemCodeParams) WithContext added in v0.7.0

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

WithContext adds the context to the redeem code params

func (*RedeemCodeParams) WithHTTPClient added in v0.7.0

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

WithHTTPClient adds the HTTPClient to the redeem code params

func (*RedeemCodeParams) WithNamespace added in v0.7.0

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

WithNamespace adds the namespace to the redeem code params

func (*RedeemCodeParams) WithTimeout added in v0.7.0

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

WithTimeout adds the timeout to the redeem code params

func (*RedeemCodeParams) WithUserID added in v0.7.0

func (o *RedeemCodeParams) WithUserID(userID string) *RedeemCodeParams

WithUserID adds the userID to the redeem code params

func (*RedeemCodeParams) WriteToRequest added in v0.7.0

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

WriteToRequest writes these params to a swagger request

type RedeemCodeReader added in v0.7.0

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

RedeemCodeReader is a Reader for the RedeemCode structure.

func (*RedeemCodeReader) ReadResponse added in v0.7.0

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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