fulfillment

package
v0.1.0-alpha.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	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: 2022-08-10 - Use FulfillItemShort instead.

FulfillItem fulfill item Fulfill item. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) FulfillItemShort

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

FulfillItemShort fulfill item Fulfill item. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) FulfillRewards deprecated

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

FulfillRewards fulfill rewards without content

[SERVICE COMMUNICATION ONLY] Fulfill rewards.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) FulfillRewardsShort

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

FulfillRewardsShort fulfill rewards without content

[SERVICE COMMUNICATION ONLY] Fulfill rewards.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) FulfillRewardsV2 deprecated

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

FulfillRewardsV2 fulfill rewards

[SERVICE COMMUNICATION ONLY] Fulfill rewards.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result
  • rewards Item unsupported Type : SUBSCRIPTION

func (*Client) FulfillRewardsV2Short

func (a *Client) FulfillRewardsV2Short(params *FulfillRewardsV2Params, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsV2OK, error)

FulfillRewardsV2Short fulfill rewards

[SERVICE COMMUNICATION ONLY] Fulfill rewards.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result
  • rewards Item unsupported Type : SUBSCRIPTION

func (*Client) PreCheckFulfillItem deprecated

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

PreCheckFulfillItem pre check fulfillment items Retrieve and check fulfillment items based on the provided request. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=READ
  • Returns : list of fulfillment items

func (*Client) PreCheckFulfillItemShort

func (a *Client) PreCheckFulfillItemShort(params *PreCheckFulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*PreCheckFulfillItemOK, error)

PreCheckFulfillItemShort pre check fulfillment items Retrieve and check fulfillment items based on the provided request. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=READ
  • Returns : list of fulfillment items

func (*Client) PublicRedeemCode deprecated

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

PublicRedeemCode redeem campaign code Redeem campaign code, this api have rate limit, default: only allow request once per user in 2 seconds Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) PublicRedeemCodeShort

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

PublicRedeemCodeShort redeem campaign code Redeem campaign code, this api have rate limit, default: only allow request once per user in 2 seconds Other detail info:

  • Required permission : resource="NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) QueryFulfillmentHistories deprecated

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

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

QueryFulfillmentHistories query fulfillment histories Query fulfillment histories in a namespace. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:FULFILLMENT", action=2 (READ)
  • Returns : query fulfillment history

func (*Client) QueryFulfillmentHistoriesShort

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

QueryFulfillmentHistoriesShort query fulfillment histories Query fulfillment histories in a namespace. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:FULFILLMENT", action=2 (READ)
  • Returns : query fulfillment history

func (*Client) RedeemCode deprecated

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

RedeemCode redeem campaign code Redeem campaign code. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) RedeemCodeShort

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

RedeemCodeShort redeem campaign code Redeem campaign code. Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:FULFILLMENT", action=1 (CREATED)
  • Returns : fulfillment result

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	QueryFulfillmentHistories(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)
	QueryFulfillmentHistoriesShort(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)
	FulfillItem(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, *FulfillItemBadRequest, *FulfillItemNotFound, *FulfillItemConflict, error)
	FulfillItemShort(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, error)
	RedeemCode(params *RedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*RedeemCodeOK, *RedeemCodeBadRequest, *RedeemCodeNotFound, *RedeemCodeConflict, error)
	RedeemCodeShort(params *RedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*RedeemCodeOK, error)
	PreCheckFulfillItem(params *PreCheckFulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*PreCheckFulfillItemOK, *PreCheckFulfillItemBadRequest, *PreCheckFulfillItemNotFound, error)
	PreCheckFulfillItemShort(params *PreCheckFulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*PreCheckFulfillItemOK, 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, *PublicRedeemCodeTooManyRequests, error)
	PublicRedeemCodeShort(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, error)
	FulfillRewardsV2(params *FulfillRewardsV2Params, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsV2OK, *FulfillRewardsV2BadRequest, *FulfillRewardsV2NotFound, *FulfillRewardsV2Conflict, error)
	FulfillRewardsV2Short(params *FulfillRewardsV2Params, authInfo runtime.ClientAuthInfoWriter) (*FulfillRewardsV2OK, 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

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

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

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

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

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

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

func (o *FulfillItemParams) SetFlightId(flightId string)

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

func (*FulfillItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill item params

func (*FulfillItemParams) SetHTTPClientTransport

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

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

func NewFulfillRewardsBadRequest() *FulfillRewardsBadRequest

NewFulfillRewardsBadRequest creates a FulfillRewardsBadRequest with default headers values

func (*FulfillRewardsBadRequest) Error

func (o *FulfillRewardsBadRequest) Error() string

func (*FulfillRewardsBadRequest) GetPayload

func (*FulfillRewardsBadRequest) ToJSONString

func (o *FulfillRewardsBadRequest) ToJSONString() string

type FulfillRewardsConflict

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

func NewFulfillRewardsConflict() *FulfillRewardsConflict

NewFulfillRewardsConflict creates a FulfillRewardsConflict with default headers values

func (*FulfillRewardsConflict) Error

func (o *FulfillRewardsConflict) Error() string

func (*FulfillRewardsConflict) GetPayload

func (*FulfillRewardsConflict) ToJSONString

func (o *FulfillRewardsConflict) ToJSONString() string

type FulfillRewardsNoContent

type FulfillRewardsNoContent struct {
}

FulfillRewardsNoContent handles this case with default header values.

fulfill successfully

func NewFulfillRewardsNoContent

func NewFulfillRewardsNoContent() *FulfillRewardsNoContent

NewFulfillRewardsNoContent creates a FulfillRewardsNoContent with default headers values

func (*FulfillRewardsNoContent) Error

func (o *FulfillRewardsNoContent) Error() string

type FulfillRewardsNotFound

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

func NewFulfillRewardsNotFound() *FulfillRewardsNotFound

NewFulfillRewardsNotFound creates a FulfillRewardsNotFound with default headers values

func (*FulfillRewardsNotFound) Error

func (o *FulfillRewardsNotFound) Error() string

func (*FulfillRewardsNotFound) GetPayload

func (*FulfillRewardsNotFound) ToJSONString

func (o *FulfillRewardsNotFound) ToJSONString() string

type FulfillRewardsParams

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

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

func NewFulfillRewardsParams() *FulfillRewardsParams

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

func NewFulfillRewardsParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the fulfill rewards params

func (*FulfillRewardsParams) SetBody

SetBody adds the body to the fulfill rewards params

func (*FulfillRewardsParams) SetContext

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

SetContext adds the context to the fulfill rewards params

func (*FulfillRewardsParams) SetFlightId

func (o *FulfillRewardsParams) SetFlightId(flightId string)

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

func (*FulfillRewardsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill rewards params

func (*FulfillRewardsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the fulfill rewards params

func (*FulfillRewardsParams) SetNamespace

func (o *FulfillRewardsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the fulfill rewards params

func (*FulfillRewardsParams) SetTimeout

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

SetTimeout adds the timeout to the fulfill rewards params

func (*FulfillRewardsParams) SetUserID

func (o *FulfillRewardsParams) SetUserID(userID string)

SetUserID adds the userId to the fulfill rewards params

func (*FulfillRewardsParams) WithBody

WithBody adds the body to the fulfill rewards params

func (*FulfillRewardsParams) WithContext

WithContext adds the context to the fulfill rewards params

func (*FulfillRewardsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the fulfill rewards params

func (*FulfillRewardsParams) WithNamespace

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

WithNamespace adds the namespace to the fulfill rewards params

func (*FulfillRewardsParams) WithTimeout

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

WithTimeout adds the timeout to the fulfill rewards params

func (*FulfillRewardsParams) WithUserID

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

WithUserID adds the userID to the fulfill rewards params

func (*FulfillRewardsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type FulfillRewardsReader

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

FulfillRewardsReader is a Reader for the FulfillRewards structure.

func (*FulfillRewardsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FulfillRewardsV2BadRequest

type FulfillRewardsV2BadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsV2BadRequest 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 NewFulfillRewardsV2BadRequest

func NewFulfillRewardsV2BadRequest() *FulfillRewardsV2BadRequest

NewFulfillRewardsV2BadRequest creates a FulfillRewardsV2BadRequest with default headers values

func (*FulfillRewardsV2BadRequest) Error

func (*FulfillRewardsV2BadRequest) GetPayload

func (*FulfillRewardsV2BadRequest) ToJSONString

func (o *FulfillRewardsV2BadRequest) ToJSONString() string

type FulfillRewardsV2Conflict

type FulfillRewardsV2Conflict struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsV2Conflict 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 NewFulfillRewardsV2Conflict

func NewFulfillRewardsV2Conflict() *FulfillRewardsV2Conflict

NewFulfillRewardsV2Conflict creates a FulfillRewardsV2Conflict with default headers values

func (*FulfillRewardsV2Conflict) Error

func (o *FulfillRewardsV2Conflict) Error() string

func (*FulfillRewardsV2Conflict) GetPayload

func (*FulfillRewardsV2Conflict) ToJSONString

func (o *FulfillRewardsV2Conflict) ToJSONString() string

type FulfillRewardsV2NotFound

type FulfillRewardsV2NotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillRewardsV2NotFound 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 NewFulfillRewardsV2NotFound

func NewFulfillRewardsV2NotFound() *FulfillRewardsV2NotFound

NewFulfillRewardsV2NotFound creates a FulfillRewardsV2NotFound with default headers values

func (*FulfillRewardsV2NotFound) Error

func (o *FulfillRewardsV2NotFound) Error() string

func (*FulfillRewardsV2NotFound) GetPayload

func (*FulfillRewardsV2NotFound) ToJSONString

func (o *FulfillRewardsV2NotFound) ToJSONString() string

type FulfillRewardsV2OK

type FulfillRewardsV2OK struct {
	Payload *platformclientmodels.FulfillmentResult
}

FulfillRewardsV2OK handles this case with default header values.

successful operation

func NewFulfillRewardsV2OK

func NewFulfillRewardsV2OK() *FulfillRewardsV2OK

NewFulfillRewardsV2OK creates a FulfillRewardsV2OK with default headers values

func (*FulfillRewardsV2OK) Error

func (o *FulfillRewardsV2OK) Error() string

func (*FulfillRewardsV2OK) GetPayload

func (*FulfillRewardsV2OK) ToJSONString

func (o *FulfillRewardsV2OK) ToJSONString() string

type FulfillRewardsV2Params

type FulfillRewardsV2Params struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

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

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

func NewFulfillRewardsV2Params

func NewFulfillRewardsV2Params() *FulfillRewardsV2Params

NewFulfillRewardsV2Params creates a new FulfillRewardsV2Params object with the default values initialized.

func NewFulfillRewardsV2ParamsWithContext

func NewFulfillRewardsV2ParamsWithContext(ctx context.Context) *FulfillRewardsV2Params

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

func NewFulfillRewardsV2ParamsWithHTTPClient

func NewFulfillRewardsV2ParamsWithHTTPClient(client *http.Client) *FulfillRewardsV2Params

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

func NewFulfillRewardsV2ParamsWithTimeout

func NewFulfillRewardsV2ParamsWithTimeout(timeout time.Duration) *FulfillRewardsV2Params

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

func (*FulfillRewardsV2Params) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetBody

SetBody adds the body to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetContext

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

SetContext adds the context to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetFlightId

func (o *FulfillRewardsV2Params) SetFlightId(flightId string)

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

func (*FulfillRewardsV2Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetNamespace

func (o *FulfillRewardsV2Params) SetNamespace(namespace string)

SetNamespace adds the namespace to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetTimeout

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

SetTimeout adds the timeout to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) SetUserID

func (o *FulfillRewardsV2Params) SetUserID(userID string)

SetUserID adds the userId to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithBody

WithBody adds the body to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithContext

WithContext adds the context to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithNamespace

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

WithNamespace adds the namespace to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithTimeout

WithTimeout adds the timeout to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WithUserID

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

WithUserID adds the userID to the fulfill rewards v2 params

func (*FulfillRewardsV2Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type FulfillRewardsV2Reader

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

FulfillRewardsV2Reader is a Reader for the FulfillRewardsV2 structure.

func (*FulfillRewardsV2Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PreCheckFulfillItemBadRequest

type PreCheckFulfillItemBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PreCheckFulfillItemBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr></table>

func NewPreCheckFulfillItemBadRequest

func NewPreCheckFulfillItemBadRequest() *PreCheckFulfillItemBadRequest

NewPreCheckFulfillItemBadRequest creates a PreCheckFulfillItemBadRequest with default headers values

func (*PreCheckFulfillItemBadRequest) Error

func (*PreCheckFulfillItemBadRequest) GetPayload

func (*PreCheckFulfillItemBadRequest) ToJSONString

func (o *PreCheckFulfillItemBadRequest) ToJSONString() string

type PreCheckFulfillItemNotFound

type PreCheckFulfillItemNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PreCheckFulfillItemNotFound 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 NewPreCheckFulfillItemNotFound

func NewPreCheckFulfillItemNotFound() *PreCheckFulfillItemNotFound

NewPreCheckFulfillItemNotFound creates a PreCheckFulfillItemNotFound with default headers values

func (*PreCheckFulfillItemNotFound) Error

func (*PreCheckFulfillItemNotFound) GetPayload

func (*PreCheckFulfillItemNotFound) ToJSONString

func (o *PreCheckFulfillItemNotFound) ToJSONString() string

type PreCheckFulfillItemOK

type PreCheckFulfillItemOK struct {
	Payload []*platformclientmodels.FulfillmentItem
}

PreCheckFulfillItemOK handles this case with default header values.

Successful retrieval

func NewPreCheckFulfillItemOK

func NewPreCheckFulfillItemOK() *PreCheckFulfillItemOK

NewPreCheckFulfillItemOK creates a PreCheckFulfillItemOK with default headers values

func (*PreCheckFulfillItemOK) Error

func (o *PreCheckFulfillItemOK) Error() string

func (*PreCheckFulfillItemOK) GetPayload

func (*PreCheckFulfillItemOK) ToJSONString

func (o *PreCheckFulfillItemOK) ToJSONString() string

type PreCheckFulfillItemParams

type PreCheckFulfillItemParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

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

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

func NewPreCheckFulfillItemParams

func NewPreCheckFulfillItemParams() *PreCheckFulfillItemParams

NewPreCheckFulfillItemParams creates a new PreCheckFulfillItemParams object with the default values initialized.

func NewPreCheckFulfillItemParamsWithContext

func NewPreCheckFulfillItemParamsWithContext(ctx context.Context) *PreCheckFulfillItemParams

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

func NewPreCheckFulfillItemParamsWithHTTPClient

func NewPreCheckFulfillItemParamsWithHTTPClient(client *http.Client) *PreCheckFulfillItemParams

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

func NewPreCheckFulfillItemParamsWithTimeout

func NewPreCheckFulfillItemParamsWithTimeout(timeout time.Duration) *PreCheckFulfillItemParams

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

func (*PreCheckFulfillItemParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetBody

SetBody adds the body to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetContext

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

SetContext adds the context to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetFlightId

func (o *PreCheckFulfillItemParams) SetFlightId(flightId string)

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

func (*PreCheckFulfillItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetNamespace

func (o *PreCheckFulfillItemParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetTimeout

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

SetTimeout adds the timeout to the pre check fulfill item params

func (*PreCheckFulfillItemParams) SetUserID

func (o *PreCheckFulfillItemParams) SetUserID(userID string)

SetUserID adds the userId to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithBody

WithBody adds the body to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithContext

WithContext adds the context to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithNamespace

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

WithNamespace adds the namespace to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithTimeout

WithTimeout adds the timeout to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WithUserID

WithUserID adds the userID to the pre check fulfill item params

func (*PreCheckFulfillItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PreCheckFulfillItemReader

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

PreCheckFulfillItemReader is a Reader for the PreCheckFulfillItem structure.

func (*PreCheckFulfillItemReader) ReadResponse

func (o *PreCheckFulfillItemReader) 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

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

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

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

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

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

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

func (o *PublicRedeemCodeParams) SetFlightId(flightId string)

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

func (*PublicRedeemCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public redeem code params

func (*PublicRedeemCodeParams) SetHTTPClientTransport

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 PublicRedeemCodeTooManyRequests

type PublicRedeemCodeTooManyRequests struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicRedeemCodeTooManyRequests handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20007</td><td>too many requests</td></tr></table>

func NewPublicRedeemCodeTooManyRequests

func NewPublicRedeemCodeTooManyRequests() *PublicRedeemCodeTooManyRequests

NewPublicRedeemCodeTooManyRequests creates a PublicRedeemCodeTooManyRequests with default headers values

func (*PublicRedeemCodeTooManyRequests) Error

func (*PublicRedeemCodeTooManyRequests) GetPayload

func (*PublicRedeemCodeTooManyRequests) ToJSONString

func (o *PublicRedeemCodeTooManyRequests) ToJSONString() string

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

func (o *QueryFulfillmentHistoriesOK) ToJSONString() string

type QueryFulfillmentHistoriesParams

type QueryFulfillmentHistoriesParams struct {

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

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

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

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

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

func (o *QueryFulfillmentHistoriesParams) SetFlightId(flightId string)

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

func (*QueryFulfillmentHistoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query fulfillment histories params

func (*QueryFulfillmentHistoriesParams) SetHTTPClientTransport

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

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

func NewRedeemCodeBadRequest() *RedeemCodeBadRequest

NewRedeemCodeBadRequest creates a RedeemCodeBadRequest with default headers values

func (*RedeemCodeBadRequest) Error

func (o *RedeemCodeBadRequest) Error() string

func (*RedeemCodeBadRequest) GetPayload

func (*RedeemCodeBadRequest) ToJSONString

func (o *RedeemCodeBadRequest) ToJSONString() string

type RedeemCodeConflict

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

func NewRedeemCodeConflict() *RedeemCodeConflict

NewRedeemCodeConflict creates a RedeemCodeConflict with default headers values

func (*RedeemCodeConflict) Error

func (o *RedeemCodeConflict) Error() string

func (*RedeemCodeConflict) GetPayload

func (*RedeemCodeConflict) ToJSONString

func (o *RedeemCodeConflict) ToJSONString() string

type RedeemCodeNotFound

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

func NewRedeemCodeNotFound() *RedeemCodeNotFound

NewRedeemCodeNotFound creates a RedeemCodeNotFound with default headers values

func (*RedeemCodeNotFound) Error

func (o *RedeemCodeNotFound) Error() string

func (*RedeemCodeNotFound) GetPayload

func (*RedeemCodeNotFound) ToJSONString

func (o *RedeemCodeNotFound) ToJSONString() string

type RedeemCodeOK

type RedeemCodeOK struct {
	Payload *platformclientmodels.FulfillmentResult
}

RedeemCodeOK handles this case with default header values.

successful operation

func NewRedeemCodeOK

func NewRedeemCodeOK() *RedeemCodeOK

NewRedeemCodeOK creates a RedeemCodeOK with default headers values

func (*RedeemCodeOK) Error

func (o *RedeemCodeOK) Error() string

func (*RedeemCodeOK) GetPayload

func (*RedeemCodeOK) ToJSONString

func (o *RedeemCodeOK) ToJSONString() string

type RedeemCodeParams

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

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

func NewRedeemCodeParams() *RedeemCodeParams

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

func NewRedeemCodeParamsWithContext

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the redeem code params

func (*RedeemCodeParams) SetBody

SetBody adds the body to the redeem code params

func (*RedeemCodeParams) SetContext

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

SetContext adds the context to the redeem code params

func (*RedeemCodeParams) SetFlightId

func (o *RedeemCodeParams) SetFlightId(flightId string)

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

func (*RedeemCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the redeem code params

func (*RedeemCodeParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the redeem code params

func (*RedeemCodeParams) SetNamespace

func (o *RedeemCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the redeem code params

func (*RedeemCodeParams) SetTimeout

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

SetTimeout adds the timeout to the redeem code params

func (*RedeemCodeParams) SetUserID

func (o *RedeemCodeParams) SetUserID(userID string)

SetUserID adds the userId to the redeem code params

func (*RedeemCodeParams) WithBody

WithBody adds the body to the redeem code params

func (*RedeemCodeParams) WithContext

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

WithContext adds the context to the redeem code params

func (*RedeemCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the redeem code params

func (*RedeemCodeParams) WithNamespace

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

WithNamespace adds the namespace to the redeem code params

func (*RedeemCodeParams) WithTimeout

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

WithTimeout adds the timeout to the redeem code params

func (*RedeemCodeParams) WithUserID

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

WithUserID adds the userID to the redeem code params

func (*RedeemCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RedeemCodeReader

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

RedeemCodeReader is a Reader for the RedeemCode structure.

func (*RedeemCodeReader) ReadResponse

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