Documentation ¶
Index ¶
- type Client
- func (a *Client) FulfillItem(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, *FulfillItemBadRequest, *FulfillItemNotFound, ...)
- func (a *Client) PublicRedeemCode(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, *PublicRedeemCodeBadRequest, *PublicRedeemCodeNotFound, ...)
- func (a *Client) QueryFulfillmentHistories(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type FulfillItemBadRequest
- type FulfillItemConflict
- type FulfillItemNotFound
- type FulfillItemOK
- type FulfillItemParams
- func (o *FulfillItemParams) SetBody(body *platformclientmodels.FulfillmentRequest)
- func (o *FulfillItemParams) SetContext(ctx context.Context)
- func (o *FulfillItemParams) SetHTTPClient(client *http.Client)
- func (o *FulfillItemParams) SetNamespace(namespace string)
- func (o *FulfillItemParams) SetTimeout(timeout time.Duration)
- func (o *FulfillItemParams) SetUserID(userID string)
- func (o *FulfillItemParams) WithBody(body *platformclientmodels.FulfillmentRequest) *FulfillItemParams
- func (o *FulfillItemParams) WithContext(ctx context.Context) *FulfillItemParams
- func (o *FulfillItemParams) WithHTTPClient(client *http.Client) *FulfillItemParams
- func (o *FulfillItemParams) WithNamespace(namespace string) *FulfillItemParams
- func (o *FulfillItemParams) WithTimeout(timeout time.Duration) *FulfillItemParams
- func (o *FulfillItemParams) WithUserID(userID string) *FulfillItemParams
- func (o *FulfillItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FulfillItemReader
- type PublicRedeemCodeBadRequest
- type PublicRedeemCodeConflict
- type PublicRedeemCodeNotFound
- type PublicRedeemCodeOK
- type PublicRedeemCodeParams
- func NewPublicRedeemCodeParams() *PublicRedeemCodeParams
- func NewPublicRedeemCodeParamsWithContext(ctx context.Context) *PublicRedeemCodeParams
- func NewPublicRedeemCodeParamsWithHTTPClient(client *http.Client) *PublicRedeemCodeParams
- func NewPublicRedeemCodeParamsWithTimeout(timeout time.Duration) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) SetBody(body *platformclientmodels.FulfillCodeRequest)
- func (o *PublicRedeemCodeParams) SetContext(ctx context.Context)
- func (o *PublicRedeemCodeParams) SetHTTPClient(client *http.Client)
- func (o *PublicRedeemCodeParams) SetNamespace(namespace string)
- func (o *PublicRedeemCodeParams) SetTimeout(timeout time.Duration)
- func (o *PublicRedeemCodeParams) SetUserID(userID string)
- func (o *PublicRedeemCodeParams) WithBody(body *platformclientmodels.FulfillCodeRequest) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WithContext(ctx context.Context) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WithHTTPClient(client *http.Client) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WithNamespace(namespace string) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WithTimeout(timeout time.Duration) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WithUserID(userID string) *PublicRedeemCodeParams
- func (o *PublicRedeemCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicRedeemCodeReader
- type QueryFulfillmentHistoriesOK
- type QueryFulfillmentHistoriesParams
- func NewQueryFulfillmentHistoriesParams() *QueryFulfillmentHistoriesParams
- func NewQueryFulfillmentHistoriesParamsWithContext(ctx context.Context) *QueryFulfillmentHistoriesParams
- func NewQueryFulfillmentHistoriesParamsWithHTTPClient(client *http.Client) *QueryFulfillmentHistoriesParams
- func NewQueryFulfillmentHistoriesParamsWithTimeout(timeout time.Duration) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) SetContext(ctx context.Context)
- func (o *QueryFulfillmentHistoriesParams) SetHTTPClient(client *http.Client)
- func (o *QueryFulfillmentHistoriesParams) SetLimit(limit *int32)
- func (o *QueryFulfillmentHistoriesParams) SetNamespace(namespace string)
- func (o *QueryFulfillmentHistoriesParams) SetOffset(offset *int32)
- func (o *QueryFulfillmentHistoriesParams) SetStatus(status *string)
- func (o *QueryFulfillmentHistoriesParams) SetTimeout(timeout time.Duration)
- func (o *QueryFulfillmentHistoriesParams) SetUserID(userID *string)
- func (o *QueryFulfillmentHistoriesParams) WithContext(ctx context.Context) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithHTTPClient(client *http.Client) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithLimit(limit *int32) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithNamespace(namespace string) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithOffset(offset *int32) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithStatus(status *string) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithTimeout(timeout time.Duration) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WithUserID(userID *string) *QueryFulfillmentHistoriesParams
- func (o *QueryFulfillmentHistoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryFulfillmentHistoriesReader
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 ¶
func (a *Client) FulfillItem(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, *FulfillItemBadRequest, *FulfillItemNotFound, *FulfillItemConflict, error)
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 ¶
func (a *Client) PublicRedeemCode(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, *PublicRedeemCodeBadRequest, *PublicRedeemCodeNotFound, *PublicRedeemCodeConflict, error)
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 ¶
type ClientService interface { FulfillItem(params *FulfillItemParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillItemOK, *FulfillItemBadRequest, *FulfillItemNotFound, *FulfillItemConflict, error) PublicRedeemCode(params *PublicRedeemCodeParams, authInfo runtime.ClientAuthInfoWriter) (*PublicRedeemCodeOK, *PublicRedeemCodeBadRequest, *PublicRedeemCodeNotFound, *PublicRedeemCodeConflict, error) QueryFulfillmentHistories(params *QueryFulfillmentHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*QueryFulfillmentHistoriesOK, 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>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 ¶
func (o *FulfillItemBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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 (o *FulfillItemConflict) GetPayload() *platformclientmodels.ErrorEntity
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 (o *FulfillItemNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *FulfillItemOK) GetPayload() *platformclientmodels.FulfillmentResult
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 ¶
func (o *FulfillItemParams) SetBody(body *platformclientmodels.FulfillmentRequest)
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 ¶
func (o *FulfillItemParams) WithBody(body *platformclientmodels.FulfillmentRequest) *FulfillItemParams
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 (o *PublicRedeemCodeBadRequest) Error() string
func (*PublicRedeemCodeBadRequest) GetPayload ¶
func (o *PublicRedeemCodeBadRequest) GetPayload() *platformclientmodels.ErrorEntity
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 ¶
func (o *PublicRedeemCodeConflict) GetPayload() *platformclientmodels.ErrorEntity
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 (o *PublicRedeemCodeNotFound) GetPayload() *platformclientmodels.ErrorEntity
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 (o *PublicRedeemCodeOK) GetPayload() *platformclientmodels.FulfillmentResult
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 ¶
func (o *PublicRedeemCodeParams) SetBody(body *platformclientmodels.FulfillCodeRequest)
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 ¶
func (o *PublicRedeemCodeParams) WithBody(body *platformclientmodels.FulfillCodeRequest) *PublicRedeemCodeParams
WithBody adds the body to the public redeem code params
func (*PublicRedeemCodeParams) WithContext ¶
func (o *PublicRedeemCodeParams) WithContext(ctx context.Context) *PublicRedeemCodeParams
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 ¶
func (o *PublicRedeemCodeParams) WithTimeout(timeout time.Duration) *PublicRedeemCodeParams
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 ¶
func (o *PublicRedeemCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *QueryFulfillmentHistoriesOK) Error() string
func (*QueryFulfillmentHistoriesOK) GetPayload ¶
func (o *QueryFulfillmentHistoriesOK) GetPayload() *platformclientmodels.FulfillmentHistoryPagingSlicedResult
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 ¶
func (o *QueryFulfillmentHistoriesParams) WithContext(ctx context.Context) *QueryFulfillmentHistoriesParams
WithContext adds the context to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithHTTPClient ¶
func (o *QueryFulfillmentHistoriesParams) WithHTTPClient(client *http.Client) *QueryFulfillmentHistoriesParams
WithHTTPClient adds the HTTPClient to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithLimit ¶
func (o *QueryFulfillmentHistoriesParams) WithLimit(limit *int32) *QueryFulfillmentHistoriesParams
WithLimit adds the limit to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithNamespace ¶
func (o *QueryFulfillmentHistoriesParams) WithNamespace(namespace string) *QueryFulfillmentHistoriesParams
WithNamespace adds the namespace to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithOffset ¶
func (o *QueryFulfillmentHistoriesParams) WithOffset(offset *int32) *QueryFulfillmentHistoriesParams
WithOffset adds the offset to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithStatus ¶
func (o *QueryFulfillmentHistoriesParams) WithStatus(status *string) *QueryFulfillmentHistoriesParams
WithStatus adds the status to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithTimeout ¶
func (o *QueryFulfillmentHistoriesParams) WithTimeout(timeout time.Duration) *QueryFulfillmentHistoriesParams
WithTimeout adds the timeout to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WithUserID ¶
func (o *QueryFulfillmentHistoriesParams) WithUserID(userID *string) *QueryFulfillmentHistoriesParams
WithUserID adds the userID to the query fulfillment histories params
func (*QueryFulfillmentHistoriesParams) WriteToRequest ¶
func (o *QueryFulfillmentHistoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.