order

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 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 order API

func (*Client) CountOfPurchasedItem

func (a *Client) CountOfPurchasedItem(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)

CountOfPurchasedItem gets the count of purchased item

This API is used to get the count of purchased item which is the order target.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: Item purchased count</li></ul>

func (*Client) CountOfPurchasedItemShort added in v0.8.0

func (a *Client) CountOfPurchasedItemShort(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)

func (*Client) DownloadUserOrderReceipt

DownloadUserOrderReceipt downloads user order receipt

Download user order receipt by orderNo.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: order receipt pdf</li></ul>

func (*Client) DownloadUserOrderReceiptShort added in v0.8.0

func (a *Client) DownloadUserOrderReceiptShort(params *DownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*DownloadUserOrderReceiptOK, error)

func (*Client) FulfillUserOrder

FulfillUserOrder fulfills an order

Fulfill an order if the order is charged but fulfill failed.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=4 (UPDATE)</li><li><i>Returns</i>: fulfilled order</li></ul>

func (*Client) FulfillUserOrderShort added in v0.8.0

func (a *Client) FulfillUserOrderShort(params *FulfillUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillUserOrderOK, error)

func (*Client) GetOrder

func (a *Client) GetOrder(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, *GetOrderNotFound, error)

GetOrder gets order

Get order by orderNo.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:ORDER", action=2 (READ)</li><li><i>Returns</i>: order instance</li></ul>

func (*Client) GetOrderShort added in v0.8.0

func (a *Client) GetOrderShort(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, error)

func (*Client) GetOrderStatistics

func (a *Client) GetOrderStatistics(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)

GetOrderStatistics gets order statistics

Get Order Statistics.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:ORDER", action=2 (READ)</li><li><i>Returns</i>: order statistics</li></ul>

func (*Client) GetOrderStatisticsShort added in v0.8.0

func (a *Client) GetOrderStatisticsShort(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)

func (*Client) GetUserOrder

GetUserOrder gets an order

Get an order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>

func (*Client) GetUserOrderGrant

func (a *Client) GetUserOrderGrant(params *GetUserOrderGrantParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderGrantOK, error)

GetUserOrderGrant gets user order grant

Get user order grant that fulfilled by this order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order grant</li></ul>

func (*Client) GetUserOrderGrantShort added in v0.8.0

func (a *Client) GetUserOrderGrantShort(params *GetUserOrderGrantParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderGrantOK, error)

func (*Client) GetUserOrderHistories

func (a *Client) GetUserOrderHistories(params *GetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderHistoriesOK, error)

GetUserOrderHistories gets user order histories

Get user order history.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order history</li></ul>

func (*Client) GetUserOrderHistoriesShort added in v0.8.0

func (a *Client) GetUserOrderHistoriesShort(params *GetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderHistoriesOK, error)

func (*Client) GetUserOrderShort added in v0.8.0

func (a *Client) GetUserOrderShort(params *GetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderOK, error)

func (*Client) ProcessUserOrderNotification

ProcessUserOrderNotification webs hook for payment notification

<b>[SERVICE COMMUNICATION ONLY]</b> This API is used as a web hook for payment notification from justice payment service.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=4 (UPDATE)</li><li><i>Returns</i>: Process result</li></ul>

func (*Client) ProcessUserOrderNotificationShort added in v0.8.0

func (a *Client) ProcessUserOrderNotificationShort(params *ProcessUserOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserOrderNotificationNoContent, error)

func (*Client) PublicCancelUserOrder

PublicCancelUserOrder cancels user order

Cancel user order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=4 (UPDATE)</li><li><i>Returns</i>: cancelled order</li></ul>

func (*Client) PublicCancelUserOrderShort added in v0.8.0

func (a *Client) PublicCancelUserOrderShort(params *PublicCancelUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelUserOrderOK, error)

func (*Client) PublicCreateUserOrder

PublicCreateUserOrder creates an order

Create an order. The result contains the checkout link and payment token. User with permission SANDBOX will create sandbox order that not real paid for xsolla/alipay and not validate price for wxpay.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=1 (CREATE)</li><li><i>Optional permission(user with this permission will create sandbox order)</i>: resource="SANDBOX", action=1 (CREATE)</li><li>It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT</li><li><i>Returns</i>: created order</li></ul>

func (*Client) PublicCreateUserOrderShort added in v0.8.0

func (a *Client) PublicCreateUserOrderShort(params *PublicCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserOrderCreated, error)

func (*Client) PublicDownloadUserOrderReceipt

PublicDownloadUserOrderReceipt downloads user order receipt

Download user order receipt by orderNo.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: order receipt pdf</li></ul>

func (*Client) PublicDownloadUserOrderReceiptShort added in v0.8.0

func (a *Client) PublicDownloadUserOrderReceiptShort(params *PublicDownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDownloadUserOrderReceiptOK, error)

func (*Client) PublicGetUserOrder

PublicGetUserOrder gets user order

Get user order.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>

func (*Client) PublicGetUserOrderHistories

func (a *Client) PublicGetUserOrderHistories(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)

PublicGetUserOrderHistories gets user order histories

Get user order histories.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order history</li></ul>

func (*Client) PublicGetUserOrderHistoriesShort added in v0.8.0

func (a *Client) PublicGetUserOrderHistoriesShort(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)

func (*Client) PublicGetUserOrderShort added in v0.8.0

func (a *Client) PublicGetUserOrderShort(params *PublicGetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderOK, error)

func (*Client) PublicQueryUserOrders

func (a *Client) PublicQueryUserOrders(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)

PublicQueryUserOrders queries user orders

Query user orders.<br>Other detail info: <ul><li><i>Required permission</i>: resource="NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>

func (*Client) PublicQueryUserOrdersShort added in v0.8.0

func (a *Client) PublicQueryUserOrdersShort(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)

func (*Client) QueryOrders

QueryOrders queries orders

Query orders.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:ORDER", action=2 (READ)</li><li><i>Returns</i>: query orders</li></ul>

func (*Client) QueryOrdersShort added in v0.8.0

func (a *Client) QueryOrdersShort(params *QueryOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryOrdersOK, error)

func (*Client) QueryUserOrders

func (a *Client) QueryUserOrders(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)

QueryUserOrders queries user orders

Query user orders.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=2 (READ)</li><li><i>Returns</i>: get order</li></ul>

func (*Client) QueryUserOrdersShort added in v0.8.0

func (a *Client) QueryUserOrdersShort(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)

func (*Client) RefundOrder

RefundOrder refunds order

Refund order by orderNo.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:ORDER", action=4 (UPDATE)</li></ul>

func (*Client) RefundOrderShort added in v0.8.0

func (a *Client) RefundOrderShort(params *RefundOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundOrderOK, error)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUserOrderStatus

UpdateUserOrderStatus updates order status

Update order status.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:ORDER", action=4 (UPDATE)</li><li><i>Returns</i>: updated order</li></ul>

func (*Client) UpdateUserOrderStatusShort added in v0.8.0

func (a *Client) UpdateUserOrderStatusShort(params *UpdateUserOrderStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOrderStatusOK, error)

type ClientService

type ClientService interface {
	CountOfPurchasedItem(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)
	CountOfPurchasedItemShort(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)
	DownloadUserOrderReceipt(params *DownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*DownloadUserOrderReceiptOK, *DownloadUserOrderReceiptNotFound, *DownloadUserOrderReceiptConflict, error)
	DownloadUserOrderReceiptShort(params *DownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*DownloadUserOrderReceiptOK, error)
	FulfillUserOrder(params *FulfillUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillUserOrderOK, *FulfillUserOrderBadRequest, *FulfillUserOrderNotFound, *FulfillUserOrderConflict, error)
	FulfillUserOrderShort(params *FulfillUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillUserOrderOK, error)
	GetOrder(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, *GetOrderNotFound, error)
	GetOrderShort(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, error)
	GetOrderStatistics(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)
	GetOrderStatisticsShort(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)
	GetUserOrder(params *GetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderOK, *GetUserOrderNotFound, error)
	GetUserOrderShort(params *GetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderOK, error)
	GetUserOrderGrant(params *GetUserOrderGrantParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderGrantOK, error)
	GetUserOrderGrantShort(params *GetUserOrderGrantParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderGrantOK, error)
	GetUserOrderHistories(params *GetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderHistoriesOK, error)
	GetUserOrderHistoriesShort(params *GetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderHistoriesOK, error)
	ProcessUserOrderNotification(params *ProcessUserOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserOrderNotificationNoContent, *ProcessUserOrderNotificationBadRequest, error)
	ProcessUserOrderNotificationShort(params *ProcessUserOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*ProcessUserOrderNotificationNoContent, error)
	PublicCancelUserOrder(params *PublicCancelUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelUserOrderOK, *PublicCancelUserOrderNotFound, *PublicCancelUserOrderConflict, error)
	PublicCancelUserOrderShort(params *PublicCancelUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelUserOrderOK, error)
	PublicCreateUserOrder(params *PublicCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserOrderCreated, *PublicCreateUserOrderBadRequest, *PublicCreateUserOrderForbidden, *PublicCreateUserOrderNotFound, *PublicCreateUserOrderConflict, *PublicCreateUserOrderUnprocessableEntity, error)
	PublicCreateUserOrderShort(params *PublicCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserOrderCreated, error)
	PublicDownloadUserOrderReceipt(params *PublicDownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDownloadUserOrderReceiptOK, *PublicDownloadUserOrderReceiptNotFound, *PublicDownloadUserOrderReceiptConflict, error)
	PublicDownloadUserOrderReceiptShort(params *PublicDownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter) (*PublicDownloadUserOrderReceiptOK, error)
	PublicGetUserOrder(params *PublicGetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderOK, *PublicGetUserOrderNotFound, error)
	PublicGetUserOrderShort(params *PublicGetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderOK, error)
	PublicGetUserOrderHistories(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)
	PublicGetUserOrderHistoriesShort(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)
	PublicQueryUserOrders(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)
	PublicQueryUserOrdersShort(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)
	QueryOrders(params *QueryOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryOrdersOK, *QueryOrdersUnprocessableEntity, error)
	QueryOrdersShort(params *QueryOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryOrdersOK, error)
	QueryUserOrders(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)
	QueryUserOrdersShort(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)
	RefundOrder(params *RefundOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundOrderOK, *RefundOrderNotFound, *RefundOrderConflict, *RefundOrderUnprocessableEntity, error)
	RefundOrderShort(params *RefundOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundOrderOK, error)
	UpdateUserOrderStatus(params *UpdateUserOrderStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOrderStatusOK, *UpdateUserOrderStatusNotFound, *UpdateUserOrderStatusConflict, *UpdateUserOrderStatusUnprocessableEntity, error)
	UpdateUserOrderStatusShort(params *UpdateUserOrderStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOrderStatusOK, 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 order API client.

type CountOfPurchasedItemOK

type CountOfPurchasedItemOK struct {
	Payload *platformclientmodels.PurchasedItemCount
}

CountOfPurchasedItemOK handles this case with default header values.

successful operation

func NewCountOfPurchasedItemOK

func NewCountOfPurchasedItemOK() *CountOfPurchasedItemOK

NewCountOfPurchasedItemOK creates a CountOfPurchasedItemOK with default headers values

func (*CountOfPurchasedItemOK) Error

func (o *CountOfPurchasedItemOK) Error() string

func (*CountOfPurchasedItemOK) GetPayload

type CountOfPurchasedItemParams

type CountOfPurchasedItemParams struct {

	/*ItemID*/
	ItemID string
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string

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

CountOfPurchasedItemParams contains all the parameters to send to the API endpoint for the count of purchased item operation typically these are written to a http.Request

func NewCountOfPurchasedItemParams

func NewCountOfPurchasedItemParams() *CountOfPurchasedItemParams

NewCountOfPurchasedItemParams creates a new CountOfPurchasedItemParams object with the default values initialized.

func NewCountOfPurchasedItemParamsWithContext

func NewCountOfPurchasedItemParamsWithContext(ctx context.Context) *CountOfPurchasedItemParams

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

func NewCountOfPurchasedItemParamsWithHTTPClient

func NewCountOfPurchasedItemParamsWithHTTPClient(client *http.Client) *CountOfPurchasedItemParams

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

func NewCountOfPurchasedItemParamsWithTimeout

func NewCountOfPurchasedItemParamsWithTimeout(timeout time.Duration) *CountOfPurchasedItemParams

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

func (*CountOfPurchasedItemParams) SetContext

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

SetContext adds the context to the count of purchased item params

func (*CountOfPurchasedItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the count of purchased item params

func (*CountOfPurchasedItemParams) SetItemID

func (o *CountOfPurchasedItemParams) SetItemID(itemID string)

SetItemID adds the itemId to the count of purchased item params

func (*CountOfPurchasedItemParams) SetNamespace

func (o *CountOfPurchasedItemParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the count of purchased item params

func (*CountOfPurchasedItemParams) SetTimeout

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

SetTimeout adds the timeout to the count of purchased item params

func (*CountOfPurchasedItemParams) SetUserID

func (o *CountOfPurchasedItemParams) SetUserID(userID string)

SetUserID adds the userId to the count of purchased item params

func (*CountOfPurchasedItemParams) WithContext

WithContext adds the context to the count of purchased item params

func (*CountOfPurchasedItemParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the count of purchased item params

func (*CountOfPurchasedItemParams) WithItemID

WithItemID adds the itemID to the count of purchased item params

func (*CountOfPurchasedItemParams) WithNamespace

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

WithNamespace adds the namespace to the count of purchased item params

func (*CountOfPurchasedItemParams) WithTimeout

WithTimeout adds the timeout to the count of purchased item params

func (*CountOfPurchasedItemParams) WithUserID

WithUserID adds the userID to the count of purchased item params

func (*CountOfPurchasedItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CountOfPurchasedItemReader

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

CountOfPurchasedItemReader is a Reader for the CountOfPurchasedItem structure.

func (*CountOfPurchasedItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadUserOrderReceiptConflict

type DownloadUserOrderReceiptConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

DownloadUserOrderReceiptConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32173</td><td>Receipt of order [{orderNo}] is not downloadable</td></tr></table>

func NewDownloadUserOrderReceiptConflict

func NewDownloadUserOrderReceiptConflict() *DownloadUserOrderReceiptConflict

NewDownloadUserOrderReceiptConflict creates a DownloadUserOrderReceiptConflict with default headers values

func (*DownloadUserOrderReceiptConflict) Error

func (*DownloadUserOrderReceiptConflict) GetPayload

type DownloadUserOrderReceiptNotFound

type DownloadUserOrderReceiptNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

DownloadUserOrderReceiptNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewDownloadUserOrderReceiptNotFound

func NewDownloadUserOrderReceiptNotFound() *DownloadUserOrderReceiptNotFound

NewDownloadUserOrderReceiptNotFound creates a DownloadUserOrderReceiptNotFound with default headers values

func (*DownloadUserOrderReceiptNotFound) Error

func (*DownloadUserOrderReceiptNotFound) GetPayload

type DownloadUserOrderReceiptOK added in v0.7.0

type DownloadUserOrderReceiptOK struct {
}

DownloadUserOrderReceiptOK handles this case with default header values.

Successful operation

func NewDownloadUserOrderReceiptOK added in v0.7.0

func NewDownloadUserOrderReceiptOK() *DownloadUserOrderReceiptOK

NewDownloadUserOrderReceiptOK creates a DownloadUserOrderReceiptOK with default headers values

func (*DownloadUserOrderReceiptOK) Error added in v0.7.0

type DownloadUserOrderReceiptParams

type DownloadUserOrderReceiptParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

DownloadUserOrderReceiptParams contains all the parameters to send to the API endpoint for the download user order receipt operation typically these are written to a http.Request

func NewDownloadUserOrderReceiptParams

func NewDownloadUserOrderReceiptParams() *DownloadUserOrderReceiptParams

NewDownloadUserOrderReceiptParams creates a new DownloadUserOrderReceiptParams object with the default values initialized.

func NewDownloadUserOrderReceiptParamsWithContext

func NewDownloadUserOrderReceiptParamsWithContext(ctx context.Context) *DownloadUserOrderReceiptParams

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

func NewDownloadUserOrderReceiptParamsWithHTTPClient

func NewDownloadUserOrderReceiptParamsWithHTTPClient(client *http.Client) *DownloadUserOrderReceiptParams

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

func NewDownloadUserOrderReceiptParamsWithTimeout

func NewDownloadUserOrderReceiptParamsWithTimeout(timeout time.Duration) *DownloadUserOrderReceiptParams

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

func (*DownloadUserOrderReceiptParams) SetContext

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

SetContext adds the context to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetNamespace

func (o *DownloadUserOrderReceiptParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetOrderNo

func (o *DownloadUserOrderReceiptParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetTimeout

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

SetTimeout adds the timeout to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetUserID

func (o *DownloadUserOrderReceiptParams) SetUserID(userID string)

SetUserID adds the userId to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithContext

WithContext adds the context to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithNamespace

WithNamespace adds the namespace to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithOrderNo

WithOrderNo adds the orderNo to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithTimeout

WithTimeout adds the timeout to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WithUserID

WithUserID adds the userID to the download user order receipt params

func (*DownloadUserOrderReceiptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadUserOrderReceiptReader

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

DownloadUserOrderReceiptReader is a Reader for the DownloadUserOrderReceipt structure.

func (*DownloadUserOrderReceiptReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type FulfillUserOrderBadRequest

type FulfillUserOrderBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

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

func NewFulfillUserOrderBadRequest

func NewFulfillUserOrderBadRequest() *FulfillUserOrderBadRequest

NewFulfillUserOrderBadRequest creates a FulfillUserOrderBadRequest with default headers values

func (*FulfillUserOrderBadRequest) Error

func (*FulfillUserOrderBadRequest) GetPayload

type FulfillUserOrderConflict

type FulfillUserOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillUserOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32172</td><td>Invalid order status [{status}] for order [{orderNo}]</td></tr><tr><td>20006</td><td>optimistic lock</td></tr></table>

func NewFulfillUserOrderConflict

func NewFulfillUserOrderConflict() *FulfillUserOrderConflict

NewFulfillUserOrderConflict creates a FulfillUserOrderConflict with default headers values

func (*FulfillUserOrderConflict) Error

func (o *FulfillUserOrderConflict) Error() string

func (*FulfillUserOrderConflict) GetPayload

type FulfillUserOrderNotFound

type FulfillUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

FulfillUserOrderNotFound 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>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewFulfillUserOrderNotFound

func NewFulfillUserOrderNotFound() *FulfillUserOrderNotFound

NewFulfillUserOrderNotFound creates a FulfillUserOrderNotFound with default headers values

func (*FulfillUserOrderNotFound) Error

func (o *FulfillUserOrderNotFound) Error() string

func (*FulfillUserOrderNotFound) GetPayload

type FulfillUserOrderOK

type FulfillUserOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

FulfillUserOrderOK handles this case with default header values.

successful operation

func NewFulfillUserOrderOK

func NewFulfillUserOrderOK() *FulfillUserOrderOK

NewFulfillUserOrderOK creates a FulfillUserOrderOK with default headers values

func (*FulfillUserOrderOK) Error

func (o *FulfillUserOrderOK) Error() string

func (*FulfillUserOrderOK) GetPayload

type FulfillUserOrderParams

type FulfillUserOrderParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

FulfillUserOrderParams contains all the parameters to send to the API endpoint for the fulfill user order operation typically these are written to a http.Request

func NewFulfillUserOrderParams

func NewFulfillUserOrderParams() *FulfillUserOrderParams

NewFulfillUserOrderParams creates a new FulfillUserOrderParams object with the default values initialized.

func NewFulfillUserOrderParamsWithContext

func NewFulfillUserOrderParamsWithContext(ctx context.Context) *FulfillUserOrderParams

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

func NewFulfillUserOrderParamsWithHTTPClient

func NewFulfillUserOrderParamsWithHTTPClient(client *http.Client) *FulfillUserOrderParams

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

func NewFulfillUserOrderParamsWithTimeout

func NewFulfillUserOrderParamsWithTimeout(timeout time.Duration) *FulfillUserOrderParams

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

func (*FulfillUserOrderParams) SetContext

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

SetContext adds the context to the fulfill user order params

func (*FulfillUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill user order params

func (*FulfillUserOrderParams) SetNamespace

func (o *FulfillUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the fulfill user order params

func (*FulfillUserOrderParams) SetOrderNo

func (o *FulfillUserOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the fulfill user order params

func (*FulfillUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the fulfill user order params

func (*FulfillUserOrderParams) SetUserID

func (o *FulfillUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the fulfill user order params

func (*FulfillUserOrderParams) WithContext

WithContext adds the context to the fulfill user order params

func (*FulfillUserOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the fulfill user order params

func (*FulfillUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the fulfill user order params

func (*FulfillUserOrderParams) WithOrderNo

func (o *FulfillUserOrderParams) WithOrderNo(orderNo string) *FulfillUserOrderParams

WithOrderNo adds the orderNo to the fulfill user order params

func (*FulfillUserOrderParams) WithTimeout

WithTimeout adds the timeout to the fulfill user order params

func (*FulfillUserOrderParams) WithUserID

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

WithUserID adds the userID to the fulfill user order params

func (*FulfillUserOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type FulfillUserOrderReader

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

FulfillUserOrderReader is a Reader for the FulfillUserOrder structure.

func (*FulfillUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrderNotFound

type GetOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewGetOrderNotFound

func NewGetOrderNotFound() *GetOrderNotFound

NewGetOrderNotFound creates a GetOrderNotFound with default headers values

func (*GetOrderNotFound) Error

func (o *GetOrderNotFound) Error() string

func (*GetOrderNotFound) GetPayload

type GetOrderOK

type GetOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

GetOrderOK handles this case with default header values.

successful operation

func NewGetOrderOK

func NewGetOrderOK() *GetOrderOK

NewGetOrderOK creates a GetOrderOK with default headers values

func (*GetOrderOK) Error

func (o *GetOrderOK) Error() string

func (*GetOrderOK) GetPayload

func (o *GetOrderOK) GetPayload() *platformclientmodels.OrderInfo

type GetOrderParams

type GetOrderParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string

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

GetOrderParams contains all the parameters to send to the API endpoint for the get order operation typically these are written to a http.Request

func NewGetOrderParams

func NewGetOrderParams() *GetOrderParams

NewGetOrderParams creates a new GetOrderParams object with the default values initialized.

func NewGetOrderParamsWithContext

func NewGetOrderParamsWithContext(ctx context.Context) *GetOrderParams

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

func NewGetOrderParamsWithHTTPClient

func NewGetOrderParamsWithHTTPClient(client *http.Client) *GetOrderParams

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

func NewGetOrderParamsWithTimeout

func NewGetOrderParamsWithTimeout(timeout time.Duration) *GetOrderParams

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

func (*GetOrderParams) SetContext

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

SetContext adds the context to the get order params

func (*GetOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get order params

func (*GetOrderParams) SetNamespace

func (o *GetOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get order params

func (*GetOrderParams) SetOrderNo

func (o *GetOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the get order params

func (*GetOrderParams) SetTimeout

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

SetTimeout adds the timeout to the get order params

func (*GetOrderParams) WithContext

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

WithContext adds the context to the get order params

func (*GetOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get order params

func (*GetOrderParams) WithNamespace

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

WithNamespace adds the namespace to the get order params

func (*GetOrderParams) WithOrderNo

func (o *GetOrderParams) WithOrderNo(orderNo string) *GetOrderParams

WithOrderNo adds the orderNo to the get order params

func (*GetOrderParams) WithTimeout

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

WithTimeout adds the timeout to the get order params

func (*GetOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetOrderReader

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

GetOrderReader is a Reader for the GetOrder structure.

func (*GetOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetOrderStatisticsOK

type GetOrderStatisticsOK struct {
	Payload *platformclientmodels.OrderStatistics
}

GetOrderStatisticsOK handles this case with default header values.

successful operation

func NewGetOrderStatisticsOK

func NewGetOrderStatisticsOK() *GetOrderStatisticsOK

NewGetOrderStatisticsOK creates a GetOrderStatisticsOK with default headers values

func (*GetOrderStatisticsOK) Error

func (o *GetOrderStatisticsOK) Error() string

func (*GetOrderStatisticsOK) GetPayload

type GetOrderStatisticsParams

type GetOrderStatisticsParams struct {

	/*Namespace*/
	Namespace string

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

GetOrderStatisticsParams contains all the parameters to send to the API endpoint for the get order statistics operation typically these are written to a http.Request

func NewGetOrderStatisticsParams

func NewGetOrderStatisticsParams() *GetOrderStatisticsParams

NewGetOrderStatisticsParams creates a new GetOrderStatisticsParams object with the default values initialized.

func NewGetOrderStatisticsParamsWithContext

func NewGetOrderStatisticsParamsWithContext(ctx context.Context) *GetOrderStatisticsParams

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

func NewGetOrderStatisticsParamsWithHTTPClient

func NewGetOrderStatisticsParamsWithHTTPClient(client *http.Client) *GetOrderStatisticsParams

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

func NewGetOrderStatisticsParamsWithTimeout

func NewGetOrderStatisticsParamsWithTimeout(timeout time.Duration) *GetOrderStatisticsParams

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

func (*GetOrderStatisticsParams) SetContext

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

SetContext adds the context to the get order statistics params

func (*GetOrderStatisticsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get order statistics params

func (*GetOrderStatisticsParams) SetNamespace

func (o *GetOrderStatisticsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get order statistics params

func (*GetOrderStatisticsParams) SetTimeout

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

SetTimeout adds the timeout to the get order statistics params

func (*GetOrderStatisticsParams) WithContext

WithContext adds the context to the get order statistics params

func (*GetOrderStatisticsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get order statistics params

func (*GetOrderStatisticsParams) WithNamespace

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

WithNamespace adds the namespace to the get order statistics params

func (*GetOrderStatisticsParams) WithTimeout

WithTimeout adds the timeout to the get order statistics params

func (*GetOrderStatisticsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetOrderStatisticsReader

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

GetOrderStatisticsReader is a Reader for the GetOrderStatistics structure.

func (*GetOrderStatisticsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserOrderGrantOK

type GetUserOrderGrantOK struct {
	Payload *platformclientmodels.OrderGrantInfo
}

GetUserOrderGrantOK handles this case with default header values.

successful operation

func NewGetUserOrderGrantOK

func NewGetUserOrderGrantOK() *GetUserOrderGrantOK

NewGetUserOrderGrantOK creates a GetUserOrderGrantOK with default headers values

func (*GetUserOrderGrantOK) Error

func (o *GetUserOrderGrantOK) Error() string

func (*GetUserOrderGrantOK) GetPayload

type GetUserOrderGrantParams

type GetUserOrderGrantParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

GetUserOrderGrantParams contains all the parameters to send to the API endpoint for the get user order grant operation typically these are written to a http.Request

func NewGetUserOrderGrantParams

func NewGetUserOrderGrantParams() *GetUserOrderGrantParams

NewGetUserOrderGrantParams creates a new GetUserOrderGrantParams object with the default values initialized.

func NewGetUserOrderGrantParamsWithContext

func NewGetUserOrderGrantParamsWithContext(ctx context.Context) *GetUserOrderGrantParams

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

func NewGetUserOrderGrantParamsWithHTTPClient

func NewGetUserOrderGrantParamsWithHTTPClient(client *http.Client) *GetUserOrderGrantParams

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

func NewGetUserOrderGrantParamsWithTimeout

func NewGetUserOrderGrantParamsWithTimeout(timeout time.Duration) *GetUserOrderGrantParams

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

func (*GetUserOrderGrantParams) SetContext

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

SetContext adds the context to the get user order grant params

func (*GetUserOrderGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order grant params

func (*GetUserOrderGrantParams) SetNamespace

func (o *GetUserOrderGrantParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user order grant params

func (*GetUserOrderGrantParams) SetOrderNo

func (o *GetUserOrderGrantParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the get user order grant params

func (*GetUserOrderGrantParams) SetTimeout

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

SetTimeout adds the timeout to the get user order grant params

func (*GetUserOrderGrantParams) SetUserID

func (o *GetUserOrderGrantParams) SetUserID(userID string)

SetUserID adds the userId to the get user order grant params

func (*GetUserOrderGrantParams) WithContext

WithContext adds the context to the get user order grant params

func (*GetUserOrderGrantParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user order grant params

func (*GetUserOrderGrantParams) WithNamespace

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

WithNamespace adds the namespace to the get user order grant params

func (*GetUserOrderGrantParams) WithOrderNo

func (o *GetUserOrderGrantParams) WithOrderNo(orderNo string) *GetUserOrderGrantParams

WithOrderNo adds the orderNo to the get user order grant params

func (*GetUserOrderGrantParams) WithTimeout

WithTimeout adds the timeout to the get user order grant params

func (*GetUserOrderGrantParams) WithUserID

WithUserID adds the userID to the get user order grant params

func (*GetUserOrderGrantParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserOrderGrantReader

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

GetUserOrderGrantReader is a Reader for the GetUserOrderGrant structure.

func (*GetUserOrderGrantReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserOrderHistoriesOK

type GetUserOrderHistoriesOK struct {
	Payload []*platformclientmodels.OrderHistoryInfo
}

GetUserOrderHistoriesOK handles this case with default header values.

successful operation

func NewGetUserOrderHistoriesOK

func NewGetUserOrderHistoriesOK() *GetUserOrderHistoriesOK

NewGetUserOrderHistoriesOK creates a GetUserOrderHistoriesOK with default headers values

func (*GetUserOrderHistoriesOK) Error

func (o *GetUserOrderHistoriesOK) Error() string

func (*GetUserOrderHistoriesOK) GetPayload

type GetUserOrderHistoriesParams

type GetUserOrderHistoriesParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

GetUserOrderHistoriesParams contains all the parameters to send to the API endpoint for the get user order histories operation typically these are written to a http.Request

func NewGetUserOrderHistoriesParams

func NewGetUserOrderHistoriesParams() *GetUserOrderHistoriesParams

NewGetUserOrderHistoriesParams creates a new GetUserOrderHistoriesParams object with the default values initialized.

func NewGetUserOrderHistoriesParamsWithContext

func NewGetUserOrderHistoriesParamsWithContext(ctx context.Context) *GetUserOrderHistoriesParams

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

func NewGetUserOrderHistoriesParamsWithHTTPClient

func NewGetUserOrderHistoriesParamsWithHTTPClient(client *http.Client) *GetUserOrderHistoriesParams

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

func NewGetUserOrderHistoriesParamsWithTimeout

func NewGetUserOrderHistoriesParamsWithTimeout(timeout time.Duration) *GetUserOrderHistoriesParams

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

func (*GetUserOrderHistoriesParams) SetContext

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

SetContext adds the context to the get user order histories params

func (*GetUserOrderHistoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order histories params

func (*GetUserOrderHistoriesParams) SetNamespace

func (o *GetUserOrderHistoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user order histories params

func (*GetUserOrderHistoriesParams) SetOrderNo

func (o *GetUserOrderHistoriesParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the get user order histories params

func (*GetUserOrderHistoriesParams) SetTimeout

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

SetTimeout adds the timeout to the get user order histories params

func (*GetUserOrderHistoriesParams) SetUserID

func (o *GetUserOrderHistoriesParams) SetUserID(userID string)

SetUserID adds the userId to the get user order histories params

func (*GetUserOrderHistoriesParams) WithContext

WithContext adds the context to the get user order histories params

func (*GetUserOrderHistoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get user order histories params

func (*GetUserOrderHistoriesParams) WithNamespace

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

WithNamespace adds the namespace to the get user order histories params

func (*GetUserOrderHistoriesParams) WithOrderNo

WithOrderNo adds the orderNo to the get user order histories params

func (*GetUserOrderHistoriesParams) WithTimeout

WithTimeout adds the timeout to the get user order histories params

func (*GetUserOrderHistoriesParams) WithUserID

WithUserID adds the userID to the get user order histories params

func (*GetUserOrderHistoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserOrderHistoriesReader

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

GetUserOrderHistoriesReader is a Reader for the GetUserOrderHistories structure.

func (*GetUserOrderHistoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserOrderNotFound

type GetUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetUserOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewGetUserOrderNotFound

func NewGetUserOrderNotFound() *GetUserOrderNotFound

NewGetUserOrderNotFound creates a GetUserOrderNotFound with default headers values

func (*GetUserOrderNotFound) Error

func (o *GetUserOrderNotFound) Error() string

func (*GetUserOrderNotFound) GetPayload

type GetUserOrderOK

type GetUserOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

GetUserOrderOK handles this case with default header values.

successful operation

func NewGetUserOrderOK

func NewGetUserOrderOK() *GetUserOrderOK

NewGetUserOrderOK creates a GetUserOrderOK with default headers values

func (*GetUserOrderOK) Error

func (o *GetUserOrderOK) Error() string

func (*GetUserOrderOK) GetPayload

type GetUserOrderParams

type GetUserOrderParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

GetUserOrderParams contains all the parameters to send to the API endpoint for the get user order operation typically these are written to a http.Request

func NewGetUserOrderParams

func NewGetUserOrderParams() *GetUserOrderParams

NewGetUserOrderParams creates a new GetUserOrderParams object with the default values initialized.

func NewGetUserOrderParamsWithContext

func NewGetUserOrderParamsWithContext(ctx context.Context) *GetUserOrderParams

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

func NewGetUserOrderParamsWithHTTPClient

func NewGetUserOrderParamsWithHTTPClient(client *http.Client) *GetUserOrderParams

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

func NewGetUserOrderParamsWithTimeout

func NewGetUserOrderParamsWithTimeout(timeout time.Duration) *GetUserOrderParams

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

func (*GetUserOrderParams) SetContext

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

SetContext adds the context to the get user order params

func (*GetUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order params

func (*GetUserOrderParams) SetNamespace

func (o *GetUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get user order params

func (*GetUserOrderParams) SetOrderNo

func (o *GetUserOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the get user order params

func (*GetUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the get user order params

func (*GetUserOrderParams) SetUserID

func (o *GetUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the get user order params

func (*GetUserOrderParams) WithContext

WithContext adds the context to the get user order params

func (*GetUserOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user order params

func (*GetUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the get user order params

func (*GetUserOrderParams) WithOrderNo

func (o *GetUserOrderParams) WithOrderNo(orderNo string) *GetUserOrderParams

WithOrderNo adds the orderNo to the get user order params

func (*GetUserOrderParams) WithTimeout

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

WithTimeout adds the timeout to the get user order params

func (*GetUserOrderParams) WithUserID

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

WithUserID adds the userID to the get user order params

func (*GetUserOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserOrderReader

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

GetUserOrderReader is a Reader for the GetUserOrder structure.

func (*GetUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProcessUserOrderNotificationBadRequest

type ProcessUserOrderNotificationBadRequest struct {
}

ProcessUserOrderNotificationBadRequest handles this case with default header values.

process failed

func NewProcessUserOrderNotificationBadRequest

func NewProcessUserOrderNotificationBadRequest() *ProcessUserOrderNotificationBadRequest

NewProcessUserOrderNotificationBadRequest creates a ProcessUserOrderNotificationBadRequest with default headers values

func (*ProcessUserOrderNotificationBadRequest) Error

type ProcessUserOrderNotificationNoContent

type ProcessUserOrderNotificationNoContent struct {
}

ProcessUserOrderNotificationNoContent handles this case with default header values.

process successfully

func NewProcessUserOrderNotificationNoContent

func NewProcessUserOrderNotificationNoContent() *ProcessUserOrderNotificationNoContent

NewProcessUserOrderNotificationNoContent creates a ProcessUserOrderNotificationNoContent with default headers values

func (*ProcessUserOrderNotificationNoContent) Error

type ProcessUserOrderNotificationParams

type ProcessUserOrderNotificationParams struct {

	/*Body*/
	Body *platformclientmodels.TradeNotification
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

ProcessUserOrderNotificationParams contains all the parameters to send to the API endpoint for the process user order notification operation typically these are written to a http.Request

func NewProcessUserOrderNotificationParams

func NewProcessUserOrderNotificationParams() *ProcessUserOrderNotificationParams

NewProcessUserOrderNotificationParams creates a new ProcessUserOrderNotificationParams object with the default values initialized.

func NewProcessUserOrderNotificationParamsWithContext

func NewProcessUserOrderNotificationParamsWithContext(ctx context.Context) *ProcessUserOrderNotificationParams

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

func NewProcessUserOrderNotificationParamsWithHTTPClient

func NewProcessUserOrderNotificationParamsWithHTTPClient(client *http.Client) *ProcessUserOrderNotificationParams

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

func NewProcessUserOrderNotificationParamsWithTimeout

func NewProcessUserOrderNotificationParamsWithTimeout(timeout time.Duration) *ProcessUserOrderNotificationParams

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

func (*ProcessUserOrderNotificationParams) SetBody

SetBody adds the body to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetContext

SetContext adds the context to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetNamespace

func (o *ProcessUserOrderNotificationParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetOrderNo

func (o *ProcessUserOrderNotificationParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetTimeout

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

SetTimeout adds the timeout to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetUserID

func (o *ProcessUserOrderNotificationParams) SetUserID(userID string)

SetUserID adds the userId to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithBody

WithBody adds the body to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithContext

WithContext adds the context to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithNamespace

WithNamespace adds the namespace to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithOrderNo

WithOrderNo adds the orderNo to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithTimeout

WithTimeout adds the timeout to the process user order notification params

func (*ProcessUserOrderNotificationParams) WithUserID

WithUserID adds the userID to the process user order notification params

func (*ProcessUserOrderNotificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProcessUserOrderNotificationReader

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

ProcessUserOrderNotificationReader is a Reader for the ProcessUserOrderNotification structure.

func (*ProcessUserOrderNotificationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicCancelUserOrderConflict

type PublicCancelUserOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCancelUserOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32177</td><td>Order [{orderNo}] is not cancelable</td></tr></table>

func NewPublicCancelUserOrderConflict

func NewPublicCancelUserOrderConflict() *PublicCancelUserOrderConflict

NewPublicCancelUserOrderConflict creates a PublicCancelUserOrderConflict with default headers values

func (*PublicCancelUserOrderConflict) Error

func (*PublicCancelUserOrderConflict) GetPayload

type PublicCancelUserOrderNotFound

type PublicCancelUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCancelUserOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewPublicCancelUserOrderNotFound

func NewPublicCancelUserOrderNotFound() *PublicCancelUserOrderNotFound

NewPublicCancelUserOrderNotFound creates a PublicCancelUserOrderNotFound with default headers values

func (*PublicCancelUserOrderNotFound) Error

func (*PublicCancelUserOrderNotFound) GetPayload

type PublicCancelUserOrderOK

type PublicCancelUserOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

PublicCancelUserOrderOK handles this case with default header values.

successful operation

func NewPublicCancelUserOrderOK

func NewPublicCancelUserOrderOK() *PublicCancelUserOrderOK

NewPublicCancelUserOrderOK creates a PublicCancelUserOrderOK with default headers values

func (*PublicCancelUserOrderOK) Error

func (o *PublicCancelUserOrderOK) Error() string

func (*PublicCancelUserOrderOK) GetPayload

type PublicCancelUserOrderParams

type PublicCancelUserOrderParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

PublicCancelUserOrderParams contains all the parameters to send to the API endpoint for the public cancel user order operation typically these are written to a http.Request

func NewPublicCancelUserOrderParams

func NewPublicCancelUserOrderParams() *PublicCancelUserOrderParams

NewPublicCancelUserOrderParams creates a new PublicCancelUserOrderParams object with the default values initialized.

func NewPublicCancelUserOrderParamsWithContext

func NewPublicCancelUserOrderParamsWithContext(ctx context.Context) *PublicCancelUserOrderParams

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

func NewPublicCancelUserOrderParamsWithHTTPClient

func NewPublicCancelUserOrderParamsWithHTTPClient(client *http.Client) *PublicCancelUserOrderParams

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

func NewPublicCancelUserOrderParamsWithTimeout

func NewPublicCancelUserOrderParamsWithTimeout(timeout time.Duration) *PublicCancelUserOrderParams

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

func (*PublicCancelUserOrderParams) SetContext

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

SetContext adds the context to the public cancel user order params

func (*PublicCancelUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public cancel user order params

func (*PublicCancelUserOrderParams) SetNamespace

func (o *PublicCancelUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public cancel user order params

func (*PublicCancelUserOrderParams) SetOrderNo

func (o *PublicCancelUserOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the public cancel user order params

func (*PublicCancelUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the public cancel user order params

func (*PublicCancelUserOrderParams) SetUserID

func (o *PublicCancelUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the public cancel user order params

func (*PublicCancelUserOrderParams) WithContext

WithContext adds the context to the public cancel user order params

func (*PublicCancelUserOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public cancel user order params

func (*PublicCancelUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the public cancel user order params

func (*PublicCancelUserOrderParams) WithOrderNo

WithOrderNo adds the orderNo to the public cancel user order params

func (*PublicCancelUserOrderParams) WithTimeout

WithTimeout adds the timeout to the public cancel user order params

func (*PublicCancelUserOrderParams) WithUserID

WithUserID adds the userID to the public cancel user order params

func (*PublicCancelUserOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCancelUserOrderReader

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

PublicCancelUserOrderReader is a Reader for the PublicCancelUserOrder structure.

func (*PublicCancelUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicCreateUserOrderBadRequest

type PublicCreateUserOrderBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCreateUserOrderBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32121</td><td>Order price mismatch</td></tr><tr><td>32122</td><td>Item type [{itemType}] does not support</td></tr><tr><td>32123</td><td>Item is not purchasable</td></tr><tr><td>35123</td><td>Wallet [{walletId}] is inactive</td></tr><tr><td>35124</td><td>Wallet [{currencyCode}] has insufficient balance</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr></table>

func NewPublicCreateUserOrderBadRequest

func NewPublicCreateUserOrderBadRequest() *PublicCreateUserOrderBadRequest

NewPublicCreateUserOrderBadRequest creates a PublicCreateUserOrderBadRequest with default headers values

func (*PublicCreateUserOrderBadRequest) Error

func (*PublicCreateUserOrderBadRequest) GetPayload

type PublicCreateUserOrderConflict

type PublicCreateUserOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCreateUserOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32175</td><td>Exceed item [{itemId}] max count [{maxCount}] per user</td></tr><tr><td>32176</td><td>Exceed item [{itemId}] max count [{maxCount}]</td></tr><tr><td>31177</td><td>Permanent item already owned</td></tr><tr><td>49183</td><td>Pass item does not match published season pass</td></tr><tr><td>49184</td><td>Tier item does not match published season tier</td></tr><tr><td>49185</td><td>Season has not started</td></tr><tr><td>49186</td><td>Pass already owned</td></tr><tr><td>49187</td><td>Exceed max tier count</td></tr><tr><td>20006</td><td>optimistic lock</td></tr></table>

func NewPublicCreateUserOrderConflict

func NewPublicCreateUserOrderConflict() *PublicCreateUserOrderConflict

NewPublicCreateUserOrderConflict creates a PublicCreateUserOrderConflict with default headers values

func (*PublicCreateUserOrderConflict) Error

func (*PublicCreateUserOrderConflict) GetPayload

type PublicCreateUserOrderCreated

type PublicCreateUserOrderCreated struct {
	Payload *platformclientmodels.OrderInfo
}

PublicCreateUserOrderCreated handles this case with default header values.

successful operation

func NewPublicCreateUserOrderCreated

func NewPublicCreateUserOrderCreated() *PublicCreateUserOrderCreated

NewPublicCreateUserOrderCreated creates a PublicCreateUserOrderCreated with default headers values

func (*PublicCreateUserOrderCreated) Error

func (*PublicCreateUserOrderCreated) GetPayload

type PublicCreateUserOrderForbidden

type PublicCreateUserOrderForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCreateUserOrderForbidden handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20016</td><td>action is banned</td></tr></table>

func NewPublicCreateUserOrderForbidden

func NewPublicCreateUserOrderForbidden() *PublicCreateUserOrderForbidden

NewPublicCreateUserOrderForbidden creates a PublicCreateUserOrderForbidden with default headers values

func (*PublicCreateUserOrderForbidden) Error

func (*PublicCreateUserOrderForbidden) GetPayload

type PublicCreateUserOrderNotFound

type PublicCreateUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCreateUserOrderNotFound 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>30141</td><td>Store [{storeId}] does not exist in namespace [{namespace}]</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr><tr><td>49147</td><td>Published season does not exist</td></tr></table>

func NewPublicCreateUserOrderNotFound

func NewPublicCreateUserOrderNotFound() *PublicCreateUserOrderNotFound

NewPublicCreateUserOrderNotFound creates a PublicCreateUserOrderNotFound with default headers values

func (*PublicCreateUserOrderNotFound) Error

func (*PublicCreateUserOrderNotFound) GetPayload

type PublicCreateUserOrderParams

type PublicCreateUserOrderParams struct {

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

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

PublicCreateUserOrderParams contains all the parameters to send to the API endpoint for the public create user order operation typically these are written to a http.Request

func NewPublicCreateUserOrderParams

func NewPublicCreateUserOrderParams() *PublicCreateUserOrderParams

NewPublicCreateUserOrderParams creates a new PublicCreateUserOrderParams object with the default values initialized.

func NewPublicCreateUserOrderParamsWithContext

func NewPublicCreateUserOrderParamsWithContext(ctx context.Context) *PublicCreateUserOrderParams

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

func NewPublicCreateUserOrderParamsWithHTTPClient

func NewPublicCreateUserOrderParamsWithHTTPClient(client *http.Client) *PublicCreateUserOrderParams

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

func NewPublicCreateUserOrderParamsWithTimeout

func NewPublicCreateUserOrderParamsWithTimeout(timeout time.Duration) *PublicCreateUserOrderParams

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

func (*PublicCreateUserOrderParams) SetBody

SetBody adds the body to the public create user order params

func (*PublicCreateUserOrderParams) SetContext

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

SetContext adds the context to the public create user order params

func (*PublicCreateUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public create user order params

func (*PublicCreateUserOrderParams) SetNamespace

func (o *PublicCreateUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public create user order params

func (*PublicCreateUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the public create user order params

func (*PublicCreateUserOrderParams) SetUserID

func (o *PublicCreateUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the public create user order params

func (*PublicCreateUserOrderParams) WithBody

WithBody adds the body to the public create user order params

func (*PublicCreateUserOrderParams) WithContext

WithContext adds the context to the public create user order params

func (*PublicCreateUserOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public create user order params

func (*PublicCreateUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the public create user order params

func (*PublicCreateUserOrderParams) WithTimeout

WithTimeout adds the timeout to the public create user order params

func (*PublicCreateUserOrderParams) WithUserID

WithUserID adds the userID to the public create user order params

func (*PublicCreateUserOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCreateUserOrderReader

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

PublicCreateUserOrderReader is a Reader for the PublicCreateUserOrder structure.

func (*PublicCreateUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicCreateUserOrderUnprocessableEntity

type PublicCreateUserOrderUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

PublicCreateUserOrderUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewPublicCreateUserOrderUnprocessableEntity

func NewPublicCreateUserOrderUnprocessableEntity() *PublicCreateUserOrderUnprocessableEntity

NewPublicCreateUserOrderUnprocessableEntity creates a PublicCreateUserOrderUnprocessableEntity with default headers values

func (*PublicCreateUserOrderUnprocessableEntity) Error

func (*PublicCreateUserOrderUnprocessableEntity) GetPayload

type PublicDownloadUserOrderReceiptConflict

type PublicDownloadUserOrderReceiptConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicDownloadUserOrderReceiptConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32173</td><td>Receipt of order [{orderNo}] is not downloadable</td></tr></table>

func NewPublicDownloadUserOrderReceiptConflict

func NewPublicDownloadUserOrderReceiptConflict() *PublicDownloadUserOrderReceiptConflict

NewPublicDownloadUserOrderReceiptConflict creates a PublicDownloadUserOrderReceiptConflict with default headers values

func (*PublicDownloadUserOrderReceiptConflict) Error

func (*PublicDownloadUserOrderReceiptConflict) GetPayload

type PublicDownloadUserOrderReceiptNotFound

type PublicDownloadUserOrderReceiptNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicDownloadUserOrderReceiptNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewPublicDownloadUserOrderReceiptNotFound

func NewPublicDownloadUserOrderReceiptNotFound() *PublicDownloadUserOrderReceiptNotFound

NewPublicDownloadUserOrderReceiptNotFound creates a PublicDownloadUserOrderReceiptNotFound with default headers values

func (*PublicDownloadUserOrderReceiptNotFound) Error

func (*PublicDownloadUserOrderReceiptNotFound) GetPayload

type PublicDownloadUserOrderReceiptOK added in v0.7.0

type PublicDownloadUserOrderReceiptOK struct {
}

PublicDownloadUserOrderReceiptOK handles this case with default header values.

Successful operation

func NewPublicDownloadUserOrderReceiptOK added in v0.7.0

func NewPublicDownloadUserOrderReceiptOK() *PublicDownloadUserOrderReceiptOK

NewPublicDownloadUserOrderReceiptOK creates a PublicDownloadUserOrderReceiptOK with default headers values

func (*PublicDownloadUserOrderReceiptOK) Error added in v0.7.0

type PublicDownloadUserOrderReceiptParams

type PublicDownloadUserOrderReceiptParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

PublicDownloadUserOrderReceiptParams contains all the parameters to send to the API endpoint for the public download user order receipt operation typically these are written to a http.Request

func NewPublicDownloadUserOrderReceiptParams

func NewPublicDownloadUserOrderReceiptParams() *PublicDownloadUserOrderReceiptParams

NewPublicDownloadUserOrderReceiptParams creates a new PublicDownloadUserOrderReceiptParams object with the default values initialized.

func NewPublicDownloadUserOrderReceiptParamsWithContext

func NewPublicDownloadUserOrderReceiptParamsWithContext(ctx context.Context) *PublicDownloadUserOrderReceiptParams

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

func NewPublicDownloadUserOrderReceiptParamsWithHTTPClient

func NewPublicDownloadUserOrderReceiptParamsWithHTTPClient(client *http.Client) *PublicDownloadUserOrderReceiptParams

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

func NewPublicDownloadUserOrderReceiptParamsWithTimeout

func NewPublicDownloadUserOrderReceiptParamsWithTimeout(timeout time.Duration) *PublicDownloadUserOrderReceiptParams

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

func (*PublicDownloadUserOrderReceiptParams) SetContext

SetContext adds the context to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetNamespace

func (o *PublicDownloadUserOrderReceiptParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetOrderNo

func (o *PublicDownloadUserOrderReceiptParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetTimeout

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

SetTimeout adds the timeout to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetUserID

func (o *PublicDownloadUserOrderReceiptParams) SetUserID(userID string)

SetUserID adds the userId to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithContext

WithContext adds the context to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithNamespace

WithNamespace adds the namespace to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithOrderNo

WithOrderNo adds the orderNo to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithTimeout

WithTimeout adds the timeout to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WithUserID

WithUserID adds the userID to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicDownloadUserOrderReceiptReader

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

PublicDownloadUserOrderReceiptReader is a Reader for the PublicDownloadUserOrderReceipt structure.

func (*PublicDownloadUserOrderReceiptReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetUserOrderHistoriesOK

type PublicGetUserOrderHistoriesOK struct {
	Payload []*platformclientmodels.OrderHistoryInfo
}

PublicGetUserOrderHistoriesOK handles this case with default header values.

successful operation

func NewPublicGetUserOrderHistoriesOK

func NewPublicGetUserOrderHistoriesOK() *PublicGetUserOrderHistoriesOK

NewPublicGetUserOrderHistoriesOK creates a PublicGetUserOrderHistoriesOK with default headers values

func (*PublicGetUserOrderHistoriesOK) Error

func (*PublicGetUserOrderHistoriesOK) GetPayload

type PublicGetUserOrderHistoriesParams

type PublicGetUserOrderHistoriesParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

PublicGetUserOrderHistoriesParams contains all the parameters to send to the API endpoint for the public get user order histories operation typically these are written to a http.Request

func NewPublicGetUserOrderHistoriesParams

func NewPublicGetUserOrderHistoriesParams() *PublicGetUserOrderHistoriesParams

NewPublicGetUserOrderHistoriesParams creates a new PublicGetUserOrderHistoriesParams object with the default values initialized.

func NewPublicGetUserOrderHistoriesParamsWithContext

func NewPublicGetUserOrderHistoriesParamsWithContext(ctx context.Context) *PublicGetUserOrderHistoriesParams

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

func NewPublicGetUserOrderHistoriesParamsWithHTTPClient

func NewPublicGetUserOrderHistoriesParamsWithHTTPClient(client *http.Client) *PublicGetUserOrderHistoriesParams

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

func NewPublicGetUserOrderHistoriesParamsWithTimeout

func NewPublicGetUserOrderHistoriesParamsWithTimeout(timeout time.Duration) *PublicGetUserOrderHistoriesParams

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

func (*PublicGetUserOrderHistoriesParams) SetContext

SetContext adds the context to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetNamespace

func (o *PublicGetUserOrderHistoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetOrderNo

func (o *PublicGetUserOrderHistoriesParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetTimeout

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

SetTimeout adds the timeout to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetUserID

func (o *PublicGetUserOrderHistoriesParams) SetUserID(userID string)

SetUserID adds the userId to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithContext

WithContext adds the context to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithNamespace

WithNamespace adds the namespace to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithOrderNo

WithOrderNo adds the orderNo to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithTimeout

WithTimeout adds the timeout to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WithUserID

WithUserID adds the userID to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserOrderHistoriesReader

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

PublicGetUserOrderHistoriesReader is a Reader for the PublicGetUserOrderHistories structure.

func (*PublicGetUserOrderHistoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetUserOrderNotFound

type PublicGetUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetUserOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewPublicGetUserOrderNotFound

func NewPublicGetUserOrderNotFound() *PublicGetUserOrderNotFound

NewPublicGetUserOrderNotFound creates a PublicGetUserOrderNotFound with default headers values

func (*PublicGetUserOrderNotFound) Error

func (*PublicGetUserOrderNotFound) GetPayload

type PublicGetUserOrderOK

type PublicGetUserOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

PublicGetUserOrderOK handles this case with default header values.

successful operation

func NewPublicGetUserOrderOK

func NewPublicGetUserOrderOK() *PublicGetUserOrderOK

NewPublicGetUserOrderOK creates a PublicGetUserOrderOK with default headers values

func (*PublicGetUserOrderOK) Error

func (o *PublicGetUserOrderOK) Error() string

func (*PublicGetUserOrderOK) GetPayload

type PublicGetUserOrderParams

type PublicGetUserOrderParams struct {

	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

PublicGetUserOrderParams contains all the parameters to send to the API endpoint for the public get user order operation typically these are written to a http.Request

func NewPublicGetUserOrderParams

func NewPublicGetUserOrderParams() *PublicGetUserOrderParams

NewPublicGetUserOrderParams creates a new PublicGetUserOrderParams object with the default values initialized.

func NewPublicGetUserOrderParamsWithContext

func NewPublicGetUserOrderParamsWithContext(ctx context.Context) *PublicGetUserOrderParams

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

func NewPublicGetUserOrderParamsWithHTTPClient

func NewPublicGetUserOrderParamsWithHTTPClient(client *http.Client) *PublicGetUserOrderParams

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

func NewPublicGetUserOrderParamsWithTimeout

func NewPublicGetUserOrderParamsWithTimeout(timeout time.Duration) *PublicGetUserOrderParams

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

func (*PublicGetUserOrderParams) SetContext

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

SetContext adds the context to the public get user order params

func (*PublicGetUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get user order params

func (*PublicGetUserOrderParams) SetNamespace

func (o *PublicGetUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get user order params

func (*PublicGetUserOrderParams) SetOrderNo

func (o *PublicGetUserOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the public get user order params

func (*PublicGetUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the public get user order params

func (*PublicGetUserOrderParams) SetUserID

func (o *PublicGetUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the public get user order params

func (*PublicGetUserOrderParams) WithContext

WithContext adds the context to the public get user order params

func (*PublicGetUserOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get user order params

func (*PublicGetUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the public get user order params

func (*PublicGetUserOrderParams) WithOrderNo

func (o *PublicGetUserOrderParams) WithOrderNo(orderNo string) *PublicGetUserOrderParams

WithOrderNo adds the orderNo to the public get user order params

func (*PublicGetUserOrderParams) WithTimeout

WithTimeout adds the timeout to the public get user order params

func (*PublicGetUserOrderParams) WithUserID

WithUserID adds the userID to the public get user order params

func (*PublicGetUserOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUserOrderReader

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

PublicGetUserOrderReader is a Reader for the PublicGetUserOrder structure.

func (*PublicGetUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicQueryUserOrdersOK

type PublicQueryUserOrdersOK struct {
	Payload *platformclientmodels.OrderPagingSlicedResult
}

PublicQueryUserOrdersOK handles this case with default header values.

successful operation

func NewPublicQueryUserOrdersOK

func NewPublicQueryUserOrdersOK() *PublicQueryUserOrdersOK

NewPublicQueryUserOrdersOK creates a PublicQueryUserOrdersOK with default headers values

func (*PublicQueryUserOrdersOK) Error

func (o *PublicQueryUserOrdersOK) Error() string

func (*PublicQueryUserOrdersOK) GetPayload

type PublicQueryUserOrdersParams

type PublicQueryUserOrdersParams struct {

	/*ItemID*/
	ItemID *string
	/*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
}

PublicQueryUserOrdersParams contains all the parameters to send to the API endpoint for the public query user orders operation typically these are written to a http.Request

func NewPublicQueryUserOrdersParams

func NewPublicQueryUserOrdersParams() *PublicQueryUserOrdersParams

NewPublicQueryUserOrdersParams creates a new PublicQueryUserOrdersParams object with the default values initialized.

func NewPublicQueryUserOrdersParamsWithContext

func NewPublicQueryUserOrdersParamsWithContext(ctx context.Context) *PublicQueryUserOrdersParams

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

func NewPublicQueryUserOrdersParamsWithHTTPClient

func NewPublicQueryUserOrdersParamsWithHTTPClient(client *http.Client) *PublicQueryUserOrdersParams

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

func NewPublicQueryUserOrdersParamsWithTimeout

func NewPublicQueryUserOrdersParamsWithTimeout(timeout time.Duration) *PublicQueryUserOrdersParams

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

func (*PublicQueryUserOrdersParams) SetContext

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

SetContext adds the context to the public query user orders params

func (*PublicQueryUserOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public query user orders params

func (*PublicQueryUserOrdersParams) SetItemID

func (o *PublicQueryUserOrdersParams) SetItemID(itemID *string)

SetItemID adds the itemId to the public query user orders params

func (*PublicQueryUserOrdersParams) SetLimit

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

SetLimit adds the limit to the public query user orders params

func (*PublicQueryUserOrdersParams) SetNamespace

func (o *PublicQueryUserOrdersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public query user orders params

func (*PublicQueryUserOrdersParams) SetOffset

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

SetOffset adds the offset to the public query user orders params

func (*PublicQueryUserOrdersParams) SetStatus

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

SetStatus adds the status to the public query user orders params

func (*PublicQueryUserOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the public query user orders params

func (*PublicQueryUserOrdersParams) SetUserID

func (o *PublicQueryUserOrdersParams) SetUserID(userID string)

SetUserID adds the userId to the public query user orders params

func (*PublicQueryUserOrdersParams) WithContext

WithContext adds the context to the public query user orders params

func (*PublicQueryUserOrdersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public query user orders params

func (*PublicQueryUserOrdersParams) WithItemID

WithItemID adds the itemID to the public query user orders params

func (*PublicQueryUserOrdersParams) WithLimit

WithLimit adds the limit to the public query user orders params

func (*PublicQueryUserOrdersParams) WithNamespace

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

WithNamespace adds the namespace to the public query user orders params

func (*PublicQueryUserOrdersParams) WithOffset

WithOffset adds the offset to the public query user orders params

func (*PublicQueryUserOrdersParams) WithStatus

WithStatus adds the status to the public query user orders params

func (*PublicQueryUserOrdersParams) WithTimeout

WithTimeout adds the timeout to the public query user orders params

func (*PublicQueryUserOrdersParams) WithUserID

WithUserID adds the userID to the public query user orders params

func (*PublicQueryUserOrdersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicQueryUserOrdersReader

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

PublicQueryUserOrdersReader is a Reader for the PublicQueryUserOrders structure.

func (*PublicQueryUserOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryOrdersOK

type QueryOrdersOK struct {
	Payload *platformclientmodels.OrderPagingResult
}

QueryOrdersOK handles this case with default header values.

successful operation

func NewQueryOrdersOK

func NewQueryOrdersOK() *QueryOrdersOK

NewQueryOrdersOK creates a QueryOrdersOK with default headers values

func (*QueryOrdersOK) Error

func (o *QueryOrdersOK) Error() string

func (*QueryOrdersOK) GetPayload

type QueryOrdersParams

type QueryOrdersParams struct {

	/*EndTime
	  end time is exclusive, using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ

	*/
	EndTime *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*OrderNos*/
	OrderNos []string
	/*SortBy
	  default is createdTime:desc, support sort group, e.g. sortBy=status:asc,createdTime:desc

	*/
	SortBy *string
	/*StartTime
	  start time is inclusive, using ISO 8601 format e.g. yyyy-MM-dd'T'HH:mm:ssZZ

	*/
	StartTime *string
	/*Status*/
	Status *string
	/*WithTotal
	  return total in slice result when true

	*/
	WithTotal *bool

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

QueryOrdersParams contains all the parameters to send to the API endpoint for the query orders operation typically these are written to a http.Request

func NewQueryOrdersParams

func NewQueryOrdersParams() *QueryOrdersParams

NewQueryOrdersParams creates a new QueryOrdersParams object with the default values initialized.

func NewQueryOrdersParamsWithContext

func NewQueryOrdersParamsWithContext(ctx context.Context) *QueryOrdersParams

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

func NewQueryOrdersParamsWithHTTPClient

func NewQueryOrdersParamsWithHTTPClient(client *http.Client) *QueryOrdersParams

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

func NewQueryOrdersParamsWithTimeout

func NewQueryOrdersParamsWithTimeout(timeout time.Duration) *QueryOrdersParams

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

func (*QueryOrdersParams) SetContext

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

SetContext adds the context to the query orders params

func (*QueryOrdersParams) SetEndTime

func (o *QueryOrdersParams) SetEndTime(endTime *string)

SetEndTime adds the endTime to the query orders params

func (*QueryOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query orders params

func (*QueryOrdersParams) SetLimit

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

SetLimit adds the limit to the query orders params

func (*QueryOrdersParams) SetNamespace

func (o *QueryOrdersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query orders params

func (*QueryOrdersParams) SetOffset

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

SetOffset adds the offset to the query orders params

func (*QueryOrdersParams) SetOrderNos

func (o *QueryOrdersParams) SetOrderNos(orderNos []string)

SetOrderNos adds the orderNos to the query orders params

func (*QueryOrdersParams) SetSortBy

func (o *QueryOrdersParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the query orders params

func (*QueryOrdersParams) SetStartTime

func (o *QueryOrdersParams) SetStartTime(startTime *string)

SetStartTime adds the startTime to the query orders params

func (*QueryOrdersParams) SetStatus

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

SetStatus adds the status to the query orders params

func (*QueryOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the query orders params

func (*QueryOrdersParams) SetWithTotal

func (o *QueryOrdersParams) SetWithTotal(withTotal *bool)

SetWithTotal adds the withTotal to the query orders params

func (*QueryOrdersParams) WithContext

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

WithContext adds the context to the query orders params

func (*QueryOrdersParams) WithEndTime

func (o *QueryOrdersParams) WithEndTime(endTime *string) *QueryOrdersParams

WithEndTime adds the endTime to the query orders params

func (*QueryOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query orders params

func (*QueryOrdersParams) WithLimit

func (o *QueryOrdersParams) WithLimit(limit *int32) *QueryOrdersParams

WithLimit adds the limit to the query orders params

func (*QueryOrdersParams) WithNamespace

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

WithNamespace adds the namespace to the query orders params

func (*QueryOrdersParams) WithOffset

func (o *QueryOrdersParams) WithOffset(offset *int32) *QueryOrdersParams

WithOffset adds the offset to the query orders params

func (*QueryOrdersParams) WithOrderNos

func (o *QueryOrdersParams) WithOrderNos(orderNos []string) *QueryOrdersParams

WithOrderNos adds the orderNos to the query orders params

func (*QueryOrdersParams) WithSortBy

func (o *QueryOrdersParams) WithSortBy(sortBy *string) *QueryOrdersParams

WithSortBy adds the sortBy to the query orders params

func (*QueryOrdersParams) WithStartTime

func (o *QueryOrdersParams) WithStartTime(startTime *string) *QueryOrdersParams

WithStartTime adds the startTime to the query orders params

func (*QueryOrdersParams) WithStatus

func (o *QueryOrdersParams) WithStatus(status *string) *QueryOrdersParams

WithStatus adds the status to the query orders params

func (*QueryOrdersParams) WithTimeout

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

WithTimeout adds the timeout to the query orders params

func (*QueryOrdersParams) WithWithTotal

func (o *QueryOrdersParams) WithWithTotal(withTotal *bool) *QueryOrdersParams

WithWithTotal adds the withTotal to the query orders params

func (*QueryOrdersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryOrdersReader

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

QueryOrdersReader is a Reader for the QueryOrders structure.

func (*QueryOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryOrdersUnprocessableEntity

type QueryOrdersUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

QueryOrdersUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewQueryOrdersUnprocessableEntity

func NewQueryOrdersUnprocessableEntity() *QueryOrdersUnprocessableEntity

NewQueryOrdersUnprocessableEntity creates a QueryOrdersUnprocessableEntity with default headers values

func (*QueryOrdersUnprocessableEntity) Error

func (*QueryOrdersUnprocessableEntity) GetPayload

type QueryUserOrdersOK

type QueryUserOrdersOK struct {
	Payload *platformclientmodels.OrderPagingSlicedResult
}

QueryUserOrdersOK handles this case with default header values.

successful operation

func NewQueryUserOrdersOK

func NewQueryUserOrdersOK() *QueryUserOrdersOK

NewQueryUserOrdersOK creates a QueryUserOrdersOK with default headers values

func (*QueryUserOrdersOK) Error

func (o *QueryUserOrdersOK) Error() string

func (*QueryUserOrdersOK) GetPayload

type QueryUserOrdersParams

type QueryUserOrdersParams struct {

	/*ItemID*/
	ItemID *string
	/*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
}

QueryUserOrdersParams contains all the parameters to send to the API endpoint for the query user orders operation typically these are written to a http.Request

func NewQueryUserOrdersParams

func NewQueryUserOrdersParams() *QueryUserOrdersParams

NewQueryUserOrdersParams creates a new QueryUserOrdersParams object with the default values initialized.

func NewQueryUserOrdersParamsWithContext

func NewQueryUserOrdersParamsWithContext(ctx context.Context) *QueryUserOrdersParams

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

func NewQueryUserOrdersParamsWithHTTPClient

func NewQueryUserOrdersParamsWithHTTPClient(client *http.Client) *QueryUserOrdersParams

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

func NewQueryUserOrdersParamsWithTimeout

func NewQueryUserOrdersParamsWithTimeout(timeout time.Duration) *QueryUserOrdersParams

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

func (*QueryUserOrdersParams) SetContext

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

SetContext adds the context to the query user orders params

func (*QueryUserOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query user orders params

func (*QueryUserOrdersParams) SetItemID

func (o *QueryUserOrdersParams) SetItemID(itemID *string)

SetItemID adds the itemId to the query user orders params

func (*QueryUserOrdersParams) SetLimit

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

SetLimit adds the limit to the query user orders params

func (*QueryUserOrdersParams) SetNamespace

func (o *QueryUserOrdersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query user orders params

func (*QueryUserOrdersParams) SetOffset

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

SetOffset adds the offset to the query user orders params

func (*QueryUserOrdersParams) SetStatus

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

SetStatus adds the status to the query user orders params

func (*QueryUserOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the query user orders params

func (*QueryUserOrdersParams) SetUserID

func (o *QueryUserOrdersParams) SetUserID(userID string)

SetUserID adds the userId to the query user orders params

func (*QueryUserOrdersParams) WithContext

WithContext adds the context to the query user orders params

func (*QueryUserOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query user orders params

func (*QueryUserOrdersParams) WithItemID

func (o *QueryUserOrdersParams) WithItemID(itemID *string) *QueryUserOrdersParams

WithItemID adds the itemID to the query user orders params

func (*QueryUserOrdersParams) WithLimit

func (o *QueryUserOrdersParams) WithLimit(limit *int32) *QueryUserOrdersParams

WithLimit adds the limit to the query user orders params

func (*QueryUserOrdersParams) WithNamespace

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

WithNamespace adds the namespace to the query user orders params

func (*QueryUserOrdersParams) WithOffset

func (o *QueryUserOrdersParams) WithOffset(offset *int32) *QueryUserOrdersParams

WithOffset adds the offset to the query user orders params

func (*QueryUserOrdersParams) WithStatus

func (o *QueryUserOrdersParams) WithStatus(status *string) *QueryUserOrdersParams

WithStatus adds the status to the query user orders params

func (*QueryUserOrdersParams) WithTimeout

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

WithTimeout adds the timeout to the query user orders params

func (*QueryUserOrdersParams) WithUserID

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

WithUserID adds the userID to the query user orders params

func (*QueryUserOrdersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryUserOrdersReader

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

QueryUserOrdersReader is a Reader for the QueryUserOrders structure.

func (*QueryUserOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefundOrderConflict

type RefundOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

RefundOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32171</td><td>Order [{orderNo}] is not refundable</td></tr></table>

func NewRefundOrderConflict

func NewRefundOrderConflict() *RefundOrderConflict

NewRefundOrderConflict creates a RefundOrderConflict with default headers values

func (*RefundOrderConflict) Error

func (o *RefundOrderConflict) Error() string

func (*RefundOrderConflict) GetPayload

type RefundOrderNotFound

type RefundOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

RefundOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewRefundOrderNotFound

func NewRefundOrderNotFound() *RefundOrderNotFound

NewRefundOrderNotFound creates a RefundOrderNotFound with default headers values

func (*RefundOrderNotFound) Error

func (o *RefundOrderNotFound) Error() string

func (*RefundOrderNotFound) GetPayload

type RefundOrderOK

type RefundOrderOK struct {
	Payload *platformclientmodels.OrderInfo
}

RefundOrderOK handles this case with default header values.

successful operation

func NewRefundOrderOK

func NewRefundOrderOK() *RefundOrderOK

NewRefundOrderOK creates a RefundOrderOK with default headers values

func (*RefundOrderOK) Error

func (o *RefundOrderOK) Error() string

func (*RefundOrderOK) GetPayload

func (o *RefundOrderOK) GetPayload() *platformclientmodels.OrderInfo

type RefundOrderParams

type RefundOrderParams struct {

	/*Body*/
	Body *platformclientmodels.OrderRefundCreate
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string

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

RefundOrderParams contains all the parameters to send to the API endpoint for the refund order operation typically these are written to a http.Request

func NewRefundOrderParams

func NewRefundOrderParams() *RefundOrderParams

NewRefundOrderParams creates a new RefundOrderParams object with the default values initialized.

func NewRefundOrderParamsWithContext

func NewRefundOrderParamsWithContext(ctx context.Context) *RefundOrderParams

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

func NewRefundOrderParamsWithHTTPClient

func NewRefundOrderParamsWithHTTPClient(client *http.Client) *RefundOrderParams

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

func NewRefundOrderParamsWithTimeout

func NewRefundOrderParamsWithTimeout(timeout time.Duration) *RefundOrderParams

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

func (*RefundOrderParams) SetBody

SetBody adds the body to the refund order params

func (*RefundOrderParams) SetContext

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

SetContext adds the context to the refund order params

func (*RefundOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refund order params

func (*RefundOrderParams) SetNamespace

func (o *RefundOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the refund order params

func (*RefundOrderParams) SetOrderNo

func (o *RefundOrderParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the refund order params

func (*RefundOrderParams) SetTimeout

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

SetTimeout adds the timeout to the refund order params

func (*RefundOrderParams) WithBody

WithBody adds the body to the refund order params

func (*RefundOrderParams) WithContext

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

WithContext adds the context to the refund order params

func (*RefundOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the refund order params

func (*RefundOrderParams) WithNamespace

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

WithNamespace adds the namespace to the refund order params

func (*RefundOrderParams) WithOrderNo

func (o *RefundOrderParams) WithOrderNo(orderNo string) *RefundOrderParams

WithOrderNo adds the orderNo to the refund order params

func (*RefundOrderParams) WithTimeout

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

WithTimeout adds the timeout to the refund order params

func (*RefundOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type RefundOrderReader

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

RefundOrderReader is a Reader for the RefundOrder structure.

func (*RefundOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefundOrderUnprocessableEntity

type RefundOrderUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

RefundOrderUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewRefundOrderUnprocessableEntity

func NewRefundOrderUnprocessableEntity() *RefundOrderUnprocessableEntity

NewRefundOrderUnprocessableEntity creates a RefundOrderUnprocessableEntity with default headers values

func (*RefundOrderUnprocessableEntity) Error

func (*RefundOrderUnprocessableEntity) GetPayload

type UpdateUserOrderStatusConflict

type UpdateUserOrderStatusConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateUserOrderStatusConflict 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 NewUpdateUserOrderStatusConflict

func NewUpdateUserOrderStatusConflict() *UpdateUserOrderStatusConflict

NewUpdateUserOrderStatusConflict creates a UpdateUserOrderStatusConflict with default headers values

func (*UpdateUserOrderStatusConflict) Error

func (*UpdateUserOrderStatusConflict) GetPayload

type UpdateUserOrderStatusNotFound

type UpdateUserOrderStatusNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

UpdateUserOrderStatusNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32141</td><td>Order [{orderNo}] does not exist</td></tr></table>

func NewUpdateUserOrderStatusNotFound

func NewUpdateUserOrderStatusNotFound() *UpdateUserOrderStatusNotFound

NewUpdateUserOrderStatusNotFound creates a UpdateUserOrderStatusNotFound with default headers values

func (*UpdateUserOrderStatusNotFound) Error

func (*UpdateUserOrderStatusNotFound) GetPayload

type UpdateUserOrderStatusOK

type UpdateUserOrderStatusOK struct {
	Payload *platformclientmodels.OrderInfo
}

UpdateUserOrderStatusOK handles this case with default header values.

successful operation

func NewUpdateUserOrderStatusOK

func NewUpdateUserOrderStatusOK() *UpdateUserOrderStatusOK

NewUpdateUserOrderStatusOK creates a UpdateUserOrderStatusOK with default headers values

func (*UpdateUserOrderStatusOK) Error

func (o *UpdateUserOrderStatusOK) Error() string

func (*UpdateUserOrderStatusOK) GetPayload

type UpdateUserOrderStatusParams

type UpdateUserOrderStatusParams struct {

	/*Body*/
	Body *platformclientmodels.OrderUpdate
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

UpdateUserOrderStatusParams contains all the parameters to send to the API endpoint for the update user order status operation typically these are written to a http.Request

func NewUpdateUserOrderStatusParams

func NewUpdateUserOrderStatusParams() *UpdateUserOrderStatusParams

NewUpdateUserOrderStatusParams creates a new UpdateUserOrderStatusParams object with the default values initialized.

func NewUpdateUserOrderStatusParamsWithContext

func NewUpdateUserOrderStatusParamsWithContext(ctx context.Context) *UpdateUserOrderStatusParams

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

func NewUpdateUserOrderStatusParamsWithHTTPClient

func NewUpdateUserOrderStatusParamsWithHTTPClient(client *http.Client) *UpdateUserOrderStatusParams

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

func NewUpdateUserOrderStatusParamsWithTimeout

func NewUpdateUserOrderStatusParamsWithTimeout(timeout time.Duration) *UpdateUserOrderStatusParams

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

func (*UpdateUserOrderStatusParams) SetBody

SetBody adds the body to the update user order status params

func (*UpdateUserOrderStatusParams) SetContext

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

SetContext adds the context to the update user order status params

func (*UpdateUserOrderStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user order status params

func (*UpdateUserOrderStatusParams) SetNamespace

func (o *UpdateUserOrderStatusParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the update user order status params

func (*UpdateUserOrderStatusParams) SetOrderNo

func (o *UpdateUserOrderStatusParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the update user order status params

func (*UpdateUserOrderStatusParams) SetTimeout

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

SetTimeout adds the timeout to the update user order status params

func (*UpdateUserOrderStatusParams) SetUserID

func (o *UpdateUserOrderStatusParams) SetUserID(userID string)

SetUserID adds the userId to the update user order status params

func (*UpdateUserOrderStatusParams) WithBody

WithBody adds the body to the update user order status params

func (*UpdateUserOrderStatusParams) WithContext

WithContext adds the context to the update user order status params

func (*UpdateUserOrderStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update user order status params

func (*UpdateUserOrderStatusParams) WithNamespace

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

WithNamespace adds the namespace to the update user order status params

func (*UpdateUserOrderStatusParams) WithOrderNo

WithOrderNo adds the orderNo to the update user order status params

func (*UpdateUserOrderStatusParams) WithTimeout

WithTimeout adds the timeout to the update user order status params

func (*UpdateUserOrderStatusParams) WithUserID

WithUserID adds the userID to the update user order status params

func (*UpdateUserOrderStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserOrderStatusReader

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

UpdateUserOrderStatusReader is a Reader for the UpdateUserOrderStatus structure.

func (*UpdateUserOrderStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserOrderStatusUnprocessableEntity

type UpdateUserOrderStatusUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

UpdateUserOrderStatusUnprocessableEntity handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20002</td><td>validation error</td></tr></table>

func NewUpdateUserOrderStatusUnprocessableEntity

func NewUpdateUserOrderStatusUnprocessableEntity() *UpdateUserOrderStatusUnprocessableEntity

NewUpdateUserOrderStatusUnprocessableEntity creates a UpdateUserOrderStatusUnprocessableEntity with default headers values

func (*UpdateUserOrderStatusUnprocessableEntity) Error

func (*UpdateUserOrderStatusUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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