fulfillment

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

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

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)

func (*Client) PublicRedeemCode

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)

func (*Client) QueryFulfillmentHistories

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

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)

func (*Client) RedeemCode added in v0.7.0

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)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

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

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

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

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

type FulfillItemParams

type FulfillItemParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillmentRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

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></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

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

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

type PublicRedeemCodeParams

type PublicRedeemCodeParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillCodeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

type QueryFulfillmentHistoriesParams

type QueryFulfillmentHistoriesParams struct {

	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Status*/
	Status *string
	/*UserID*/
	UserID *string

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

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></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

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

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

type RedeemCodeParams added in v0.7.0

type RedeemCodeParams struct {

	/*Body*/
	Body *platformclientmodels.FulfillCodeRequest
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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