fulfillment

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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) 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) 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) 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>35121</td><td>Transaction amount [{actualAmount}] exceed max amount [{maxAmount}] per day</td></tr><tr><td>35122</td><td>Transaction amount [{actualAmount}] exceed max amount [{maxAmount}] per transaction</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>35125</td><td>Balance exceed max balance [{maxAmount}]</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>35121</td><td>Transaction amount [{actualAmount}] exceed max amount [{maxAmount}] per day</td></tr><tr><td>35122</td><td>Transaction amount [{actualAmount}] exceed max amount [{maxAmount}] per transaction</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>35125</td><td>Balance exceed max balance [{maxAmount}]</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.

Jump to

Keyboard shortcuts

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