order

package
v0.1.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PublicQueryUserOrdersCHARGEBACKConstant         = "CHARGEBACK"
	PublicQueryUserOrdersCHARGEBACKREVERSEDConstant = "CHARGEBACK_REVERSED"
	PublicQueryUserOrdersCHARGEDConstant            = "CHARGED"
	PublicQueryUserOrdersCLOSEDConstant             = "CLOSED"
	PublicQueryUserOrdersDELETEDConstant            = "DELETED"
	PublicQueryUserOrdersFULFILLEDConstant          = "FULFILLED"
	PublicQueryUserOrdersFULFILLFAILEDConstant      = "FULFILL_FAILED"
	PublicQueryUserOrdersINITConstant               = "INIT"
	PublicQueryUserOrdersREFUNDEDConstant           = "REFUNDED"
	PublicQueryUserOrdersREFUNDINGConstant          = "REFUNDING"
	PublicQueryUserOrdersREFUNDFAILEDConstant       = "REFUND_FAILED"
)

Get the enum in PublicQueryUserOrdersParams

View Source
const (
	QueryOrdersCHARGEBACKConstant         = "CHARGEBACK"
	QueryOrdersCHARGEBACKREVERSEDConstant = "CHARGEBACK_REVERSED"
	QueryOrdersCHARGEDConstant            = "CHARGED"
	QueryOrdersCLOSEDConstant             = "CLOSED"
	QueryOrdersDELETEDConstant            = "DELETED"
	QueryOrdersFULFILLEDConstant          = "FULFILLED"
	QueryOrdersFULFILLFAILEDConstant      = "FULFILL_FAILED"
	QueryOrdersINITConstant               = "INIT"
	QueryOrdersREFUNDEDConstant           = "REFUNDED"
	QueryOrdersREFUNDINGConstant          = "REFUNDING"
	QueryOrdersREFUNDFAILEDConstant       = "REFUND_FAILED"
)

Get the enum in QueryOrdersParams

View Source
const (
	QueryUserOrdersCHARGEBACKConstant         = "CHARGEBACK"
	QueryUserOrdersCHARGEBACKREVERSEDConstant = "CHARGEBACK_REVERSED"
	QueryUserOrdersCHARGEDConstant            = "CHARGED"
	QueryUserOrdersCLOSEDConstant             = "CLOSED"
	QueryUserOrdersDELETEDConstant            = "DELETED"
	QueryUserOrdersFULFILLEDConstant          = "FULFILLED"
	QueryUserOrdersFULFILLFAILEDConstant      = "FULFILL_FAILED"
	QueryUserOrdersINITConstant               = "INIT"
	QueryUserOrdersREFUNDEDConstant           = "REFUNDED"
	QueryUserOrdersREFUNDINGConstant          = "REFUNDING"
	QueryUserOrdersREFUNDFAILEDConstant       = "REFUND_FAILED"
)

Get the enum in QueryUserOrdersParams

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreateUserOrderBadRequest

type AdminCreateUserOrderBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

AdminCreateUserOrderBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20018</td><td>ecommerce item type not supported</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>32126</td><td>Section ID is required for placing this order</td></tr><tr><td>38121</td><td>Duplicate permanent item exists</td></tr><tr><td>32124</td><td>Invalid currency namespace</td></tr><tr><td>32127</td><td>Discount code [{code}] can't be used on this item: {tips}</td></tr><tr><td>32128</td><td>Discount code [{code}] can not be used with other code together</td></tr><tr><td>32129</td><td>Can't use discount code on free order</td></tr><tr><td>32130</td><td>The total discount amount cannot exceed the order price</td></tr></table>

func NewAdminCreateUserOrderBadRequest

func NewAdminCreateUserOrderBadRequest() *AdminCreateUserOrderBadRequest

NewAdminCreateUserOrderBadRequest creates a AdminCreateUserOrderBadRequest with default headers values

func (*AdminCreateUserOrderBadRequest) Error

func (*AdminCreateUserOrderBadRequest) GetPayload

func (*AdminCreateUserOrderBadRequest) ToJSONString

func (o *AdminCreateUserOrderBadRequest) ToJSONString() string

type AdminCreateUserOrderConflict

type AdminCreateUserOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

AdminCreateUserOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>20024</td><td>insufficient inventory capacity (max. slots)</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>32178</td><td>User [{userId}] already owned all durable items in flexible bundle [{bundleId}], namespace: [{namespace}]</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><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37175</td><td>Exceeded max redeem count per code per user [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr><tr><td>37179</td><td>Exceeded max redeem count per campaign per user [{maxCount}]</td></tr></table>

func NewAdminCreateUserOrderConflict

func NewAdminCreateUserOrderConflict() *AdminCreateUserOrderConflict

NewAdminCreateUserOrderConflict creates a AdminCreateUserOrderConflict with default headers values

func (*AdminCreateUserOrderConflict) Error

func (*AdminCreateUserOrderConflict) GetPayload

func (*AdminCreateUserOrderConflict) ToJSONString

func (o *AdminCreateUserOrderConflict) ToJSONString() string

type AdminCreateUserOrderCreated

type AdminCreateUserOrderCreated struct {
	Payload *platformclientmodels.OrderInfo
}

AdminCreateUserOrderCreated handles this case with default header values.

successful operation

func NewAdminCreateUserOrderCreated

func NewAdminCreateUserOrderCreated() *AdminCreateUserOrderCreated

NewAdminCreateUserOrderCreated creates a AdminCreateUserOrderCreated with default headers values

func (*AdminCreateUserOrderCreated) Error

func (*AdminCreateUserOrderCreated) GetPayload

func (*AdminCreateUserOrderCreated) ToJSONString

func (o *AdminCreateUserOrderCreated) ToJSONString() string

type AdminCreateUserOrderForbidden

type AdminCreateUserOrderForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

AdminCreateUserOrderForbidden 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 NewAdminCreateUserOrderForbidden

func NewAdminCreateUserOrderForbidden() *AdminCreateUserOrderForbidden

NewAdminCreateUserOrderForbidden creates a AdminCreateUserOrderForbidden with default headers values

func (*AdminCreateUserOrderForbidden) Error

func (*AdminCreateUserOrderForbidden) GetPayload

func (*AdminCreateUserOrderForbidden) ToJSONString

func (o *AdminCreateUserOrderForbidden) ToJSONString() string

type AdminCreateUserOrderNotFound

type AdminCreateUserOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

AdminCreateUserOrderNotFound 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>30142</td><td>Published store 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><tr><td>1100001</td><td>record not found: inventory</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewAdminCreateUserOrderNotFound

func NewAdminCreateUserOrderNotFound() *AdminCreateUserOrderNotFound

NewAdminCreateUserOrderNotFound creates a AdminCreateUserOrderNotFound with default headers values

func (*AdminCreateUserOrderNotFound) Error

func (*AdminCreateUserOrderNotFound) GetPayload

func (*AdminCreateUserOrderNotFound) ToJSONString

func (o *AdminCreateUserOrderNotFound) ToJSONString() string

type AdminCreateUserOrderParams

type AdminCreateUserOrderParams struct {

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

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

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

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

func NewAdminCreateUserOrderParams

func NewAdminCreateUserOrderParams() *AdminCreateUserOrderParams

NewAdminCreateUserOrderParams creates a new AdminCreateUserOrderParams object with the default values initialized.

func NewAdminCreateUserOrderParamsWithContext

func NewAdminCreateUserOrderParamsWithContext(ctx context.Context) *AdminCreateUserOrderParams

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

func NewAdminCreateUserOrderParamsWithHTTPClient

func NewAdminCreateUserOrderParamsWithHTTPClient(client *http.Client) *AdminCreateUserOrderParams

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

func NewAdminCreateUserOrderParamsWithTimeout

func NewAdminCreateUserOrderParamsWithTimeout(timeout time.Duration) *AdminCreateUserOrderParams

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

func (*AdminCreateUserOrderParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the admin create user order params

func (*AdminCreateUserOrderParams) SetBody

SetBody adds the body to the admin create user order params

func (*AdminCreateUserOrderParams) SetContext

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

SetContext adds the context to the admin create user order params

func (*AdminCreateUserOrderParams) SetFlightId

func (o *AdminCreateUserOrderParams) SetFlightId(flightId string)

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

func (*AdminCreateUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin create user order params

func (*AdminCreateUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the admin create user order params

func (*AdminCreateUserOrderParams) SetNamespace

func (o *AdminCreateUserOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin create user order params

func (*AdminCreateUserOrderParams) SetTimeout

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

SetTimeout adds the timeout to the admin create user order params

func (*AdminCreateUserOrderParams) SetUserID

func (o *AdminCreateUserOrderParams) SetUserID(userID string)

SetUserID adds the userId to the admin create user order params

func (*AdminCreateUserOrderParams) WithBody

WithBody adds the body to the admin create user order params

func (*AdminCreateUserOrderParams) WithContext

WithContext adds the context to the admin create user order params

func (*AdminCreateUserOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin create user order params

func (*AdminCreateUserOrderParams) WithNamespace

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

WithNamespace adds the namespace to the admin create user order params

func (*AdminCreateUserOrderParams) WithTimeout

WithTimeout adds the timeout to the admin create user order params

func (*AdminCreateUserOrderParams) WithUserID

WithUserID adds the userID to the admin create user order params

func (*AdminCreateUserOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminCreateUserOrderReader

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

AdminCreateUserOrderReader is a Reader for the AdminCreateUserOrder structure.

func (*AdminCreateUserOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminCreateUserOrderUnprocessableEntity

type AdminCreateUserOrderUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

AdminCreateUserOrderUnprocessableEntity 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 NewAdminCreateUserOrderUnprocessableEntity

func NewAdminCreateUserOrderUnprocessableEntity() *AdminCreateUserOrderUnprocessableEntity

NewAdminCreateUserOrderUnprocessableEntity creates a AdminCreateUserOrderUnprocessableEntity with default headers values

func (*AdminCreateUserOrderUnprocessableEntity) Error

func (*AdminCreateUserOrderUnprocessableEntity) GetPayload

func (*AdminCreateUserOrderUnprocessableEntity) ToJSONString

type Client

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

Client for order API

func (*Client) AdminCreateUserOrder deprecated

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

AdminCreateUserOrder admin create an order Admin 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. Other detail info:

  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • sandbox default value is false
  • platform default value is Other
  • Returns : created order

## Restrictions for ext field

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) AdminCreateUserOrderShort

func (a *Client) AdminCreateUserOrderShort(params *AdminCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateUserOrderCreated, error)

AdminCreateUserOrderShort admin create an order Admin 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. Other detail info:

  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • sandbox default value is false
  • platform default value is Other
  • Returns : created order

## Restrictions for ext field

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) CountOfPurchasedItem deprecated

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

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

CountOfPurchasedItem get the count of purchased item This API is used to get the count of purchased item which is the order target. Other detail info:

  • Returns : Item purchased count

func (*Client) CountOfPurchasedItemShort

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

CountOfPurchasedItemShort get the count of purchased item This API is used to get the count of purchased item which is the order target. Other detail info:

  • Returns : Item purchased count

func (*Client) DownloadUserOrderReceipt deprecated

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

DownloadUserOrderReceipt download user order receipt Download user order receipt by orderNo. Other detail info:

  • Returns : order receipt pdf

func (*Client) DownloadUserOrderReceiptShort

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

DownloadUserOrderReceiptShort download user order receipt Download user order receipt by orderNo. Other detail info:

  • Returns : order receipt pdf

func (*Client) FulfillUserOrder deprecated

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

FulfillUserOrder fulfill an order Fulfill an order if the order is charged but fulfill failed. Other detail info:

  • Returns : fulfilled order

func (*Client) FulfillUserOrderShort

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

FulfillUserOrderShort fulfill an order Fulfill an order if the order is charged but fulfill failed. Other detail info:

  • Returns : fulfilled order

func (*Client) GetOrder deprecated

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

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

GetOrder get order Get order by orderNo. Other detail info:

  • Returns : order instance

func (*Client) GetOrderShort

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

GetOrderShort get order Get order by orderNo. Other detail info:

  • Returns : order instance

func (*Client) GetOrderStatistics deprecated

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

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

GetOrderStatistics get order statistics Get Order Statistics. Other detail info:

  • Returns : order statistics

func (*Client) GetOrderStatisticsShort

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

GetOrderStatisticsShort get order statistics Get Order Statistics. Other detail info:

  • Returns : order statistics

func (*Client) GetUserOrder deprecated

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

GetUserOrder get an order Get an order. Other detail info:

  • Returns : get order

func (*Client) GetUserOrderGrant deprecated

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

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

GetUserOrderGrant get user order grant Get user order grant that fulfilled by this order. Other detail info:

  • Returns : get order grant

func (*Client) GetUserOrderGrantShort

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

GetUserOrderGrantShort get user order grant Get user order grant that fulfilled by this order. Other detail info:

  • Returns : get order grant

func (*Client) GetUserOrderHistories deprecated

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

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

GetUserOrderHistories get user order histories Get user order history. Other detail info:

  • Returns : get order history

func (*Client) GetUserOrderHistoriesShort

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

GetUserOrderHistoriesShort get user order histories Get user order history. Other detail info:

  • Returns : get order history

func (*Client) GetUserOrderShort

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

GetUserOrderShort get an order Get an order. Other detail info:

  • Returns : get order

func (*Client) ProcessUserOrderNotification deprecated

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

ProcessUserOrderNotification web hook for payment notification

[SERVICE COMMUNICATION ONLY] This API is used as a web hook for payment notification from justice payment service.

Other detail info:

  • Returns : Process result

func (*Client) ProcessUserOrderNotificationShort

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

ProcessUserOrderNotificationShort web hook for payment notification

[SERVICE COMMUNICATION ONLY] This API is used as a web hook for payment notification from justice payment service.

Other detail info:

  • Returns : Process result

func (*Client) PublicCancelUserOrder deprecated

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

PublicCancelUserOrder cancel user order Cancel user order. Other detail info:

  • Returns : cancelled order

func (*Client) PublicCancelUserOrderShort

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

PublicCancelUserOrderShort cancel user order Cancel user order. Other detail info:

  • Returns : cancelled order

func (*Client) PublicCreateUserOrder deprecated

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

PublicCreateUserOrder create 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. Other detail info:

  • Optional permission(user with this permission will create sandbox order) : resource="SANDBOX", action=1 (CREATE)
  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • Returns : created order

## Restrictions for ext field

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) PublicCreateUserOrderShort

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

PublicCreateUserOrderShort create 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. Other detail info:

  • Optional permission(user with this permission will create sandbox order) : resource="SANDBOX", action=1 (CREATE)
  • It will be forbidden while the user is banned: ORDER_INITIATE or ORDER_AND_PAYMENT
  • Returns : created order

## Restrictions for ext field

1. Cannot use "." as the key name -

{ "data.2": "value" }

2. Cannot use "$" as the prefix in key names -

{ "$data": "value" }

func (*Client) PublicDownloadUserOrderReceipt deprecated

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

PublicDownloadUserOrderReceipt download user order receipt Download user order receipt by orderNo. Other detail info:

  • Returns : order receipt pdf

func (*Client) PublicDownloadUserOrderReceiptShort

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

PublicDownloadUserOrderReceiptShort download user order receipt Download user order receipt by orderNo. Other detail info:

  • Returns : order receipt pdf

func (*Client) PublicGetUserOrder deprecated

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

PublicGetUserOrder get user order Get user order. Other detail info:

  • Returns : get order

func (*Client) PublicGetUserOrderHistories deprecated

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

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

PublicGetUserOrderHistories get user order histories Get user order histories. Other detail info:

  • Returns : get order history

func (*Client) PublicGetUserOrderHistoriesShort

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

PublicGetUserOrderHistoriesShort get user order histories Get user order histories. Other detail info:

  • Returns : get order history

func (*Client) PublicGetUserOrderShort

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

PublicGetUserOrderShort get user order Get user order. Other detail info:

  • Returns : get order

func (*Client) PublicPreviewOrderPrice deprecated

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

PublicPreviewOrderPrice preview order price with discount code. Preview order price with discount code, this api is used to auto calc order price with discount code.Notes: this api don't do full order validation, only check discount code and calc final order price.Other detail info:

  • Returns : previewed order

func (*Client) PublicPreviewOrderPriceShort

func (a *Client) PublicPreviewOrderPriceShort(params *PublicPreviewOrderPriceParams, authInfo runtime.ClientAuthInfoWriter) (*PublicPreviewOrderPriceOK, error)

PublicPreviewOrderPriceShort preview order price with discount code. Preview order price with discount code, this api is used to auto calc order price with discount code.Notes: this api don't do full order validation, only check discount code and calc final order price.Other detail info:

  • Returns : previewed order

func (*Client) PublicQueryUserOrders deprecated

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

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

PublicQueryUserOrders query user orders Query user orders. Other detail info:

  • Returns : get order

func (*Client) PublicQueryUserOrdersShort

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

PublicQueryUserOrdersShort query user orders Query user orders. Other detail info:

  • Returns : get order

func (*Client) QueryOrders deprecated

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

QueryOrders query orders Query orders. Other detail info:

  • Returns : query orders

func (*Client) QueryOrdersShort

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

QueryOrdersShort query orders Query orders. Other detail info:

  • Returns : query orders

func (*Client) QueryUserOrders deprecated

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

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

QueryUserOrders query user orders Query user orders. Other detail info:

  • Returns : get order

func (*Client) QueryUserOrdersShort

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

QueryUserOrdersShort query user orders Query user orders. Other detail info:

  • Returns : get order

func (*Client) RefundOrder deprecated

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

RefundOrder refund order Refund order by orderNo.

func (*Client) RefundOrderShort

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

RefundOrderShort refund order Refund order by orderNo.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUserOrderStatus deprecated

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

UpdateUserOrderStatus update order status Update order status. Other detail info:

  • Returns : updated order

func (*Client) UpdateUserOrderStatusShort

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

UpdateUserOrderStatusShort update order status Update order status. Other detail info:

  • Returns : updated order

type ClientService

type ClientService interface {
	QueryOrders(params *QueryOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryOrdersOK, *QueryOrdersUnprocessableEntity, error)
	QueryOrdersShort(params *QueryOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryOrdersOK, error)
	GetOrderStatistics(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)
	GetOrderStatisticsShort(params *GetOrderStatisticsParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderStatisticsOK, error)
	GetOrder(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, *GetOrderNotFound, error)
	GetOrderShort(params *GetOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetOrderOK, error)
	RefundOrder(params *RefundOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundOrderOK, *RefundOrderNotFound, *RefundOrderConflict, *RefundOrderUnprocessableEntity, error)
	RefundOrderShort(params *RefundOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundOrderOK, error)
	QueryUserOrders(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)
	QueryUserOrdersShort(params *QueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryUserOrdersOK, error)
	AdminCreateUserOrder(params *AdminCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateUserOrderCreated, *AdminCreateUserOrderBadRequest, *AdminCreateUserOrderForbidden, *AdminCreateUserOrderNotFound, *AdminCreateUserOrderConflict, *AdminCreateUserOrderUnprocessableEntity, error)
	AdminCreateUserOrderShort(params *AdminCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateUserOrderCreated, error)
	CountOfPurchasedItem(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)
	CountOfPurchasedItemShort(params *CountOfPurchasedItemParams, authInfo runtime.ClientAuthInfoWriter) (*CountOfPurchasedItemOK, error)
	GetUserOrder(params *GetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderOK, *GetUserOrderNotFound, error)
	GetUserOrderShort(params *GetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOrderOK, error)
	UpdateUserOrderStatus(params *UpdateUserOrderStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOrderStatusOK, *UpdateUserOrderStatusNotFound, *UpdateUserOrderStatusConflict, *UpdateUserOrderStatusUnprocessableEntity, error)
	UpdateUserOrderStatusShort(params *UpdateUserOrderStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOrderStatusOK, error)
	FulfillUserOrder(params *FulfillUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillUserOrderOK, *FulfillUserOrderBadRequest, *FulfillUserOrderNotFound, *FulfillUserOrderConflict, error)
	FulfillUserOrderShort(params *FulfillUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*FulfillUserOrderOK, 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)
	DownloadUserOrderReceipt(params *DownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadUserOrderReceiptOK, *DownloadUserOrderReceiptNotFound, *DownloadUserOrderReceiptConflict, error)
	DownloadUserOrderReceiptShort(params *DownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*DownloadUserOrderReceiptOK, error)
	PublicQueryUserOrders(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)
	PublicQueryUserOrdersShort(params *PublicQueryUserOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*PublicQueryUserOrdersOK, error)
	PublicCreateUserOrder(params *PublicCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserOrderCreated, *PublicCreateUserOrderBadRequest, *PublicCreateUserOrderForbidden, *PublicCreateUserOrderNotFound, *PublicCreateUserOrderConflict, *PublicCreateUserOrderUnprocessableEntity, error)
	PublicCreateUserOrderShort(params *PublicCreateUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCreateUserOrderCreated, error)
	PublicPreviewOrderPrice(params *PublicPreviewOrderPriceParams, authInfo runtime.ClientAuthInfoWriter) (*PublicPreviewOrderPriceOK, *PublicPreviewOrderPriceBadRequest, *PublicPreviewOrderPriceForbidden, *PublicPreviewOrderPriceNotFound, *PublicPreviewOrderPriceConflict, *PublicPreviewOrderPriceUnprocessableEntity, error)
	PublicPreviewOrderPriceShort(params *PublicPreviewOrderPriceParams, authInfo runtime.ClientAuthInfoWriter) (*PublicPreviewOrderPriceOK, error)
	PublicGetUserOrder(params *PublicGetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderOK, *PublicGetUserOrderNotFound, error)
	PublicGetUserOrderShort(params *PublicGetUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderOK, error)
	PublicCancelUserOrder(params *PublicCancelUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelUserOrderOK, *PublicCancelUserOrderNotFound, *PublicCancelUserOrderConflict, error)
	PublicCancelUserOrderShort(params *PublicCancelUserOrderParams, authInfo runtime.ClientAuthInfoWriter) (*PublicCancelUserOrderOK, error)
	PublicGetUserOrderHistories(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)
	PublicGetUserOrderHistoriesShort(params *PublicGetUserOrderHistoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicGetUserOrderHistoriesOK, error)
	PublicDownloadUserOrderReceipt(params *PublicDownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*PublicDownloadUserOrderReceiptOK, *PublicDownloadUserOrderReceiptNotFound, *PublicDownloadUserOrderReceiptConflict, error)
	PublicDownloadUserOrderReceiptShort(params *PublicDownloadUserOrderReceiptParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer) (*PublicDownloadUserOrderReceiptOK, 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

func (*CountOfPurchasedItemOK) ToJSONString

func (o *CountOfPurchasedItemOK) ToJSONString() string

type CountOfPurchasedItemParams

type CountOfPurchasedItemParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*UserID*/
	UserID string
	/*ItemID*/
	ItemID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the count of purchased item params

func (*CountOfPurchasedItemParams) SetContext

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

SetContext adds the context to the count of purchased item params

func (*CountOfPurchasedItemParams) SetFlightId

func (o *CountOfPurchasedItemParams) SetFlightId(flightId string)

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

func (*CountOfPurchasedItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the count of purchased item params

func (*CountOfPurchasedItemParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*DownloadUserOrderReceiptConflict) ToJSONString

func (o *DownloadUserOrderReceiptConflict) ToJSONString() string

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

func (*DownloadUserOrderReceiptNotFound) ToJSONString

func (o *DownloadUserOrderReceiptNotFound) ToJSONString() string

type DownloadUserOrderReceiptOK

type DownloadUserOrderReceiptOK struct {
	Payload io.Writer
}

DownloadUserOrderReceiptOK handles this case with default header values.

Successful operation

func NewDownloadUserOrderReceiptOK

func NewDownloadUserOrderReceiptOK(writer io.Writer) *DownloadUserOrderReceiptOK

NewDownloadUserOrderReceiptOK creates a DownloadUserOrderReceiptOK with default headers values

func (*DownloadUserOrderReceiptOK) Error

func (*DownloadUserOrderReceiptOK) GetPayload

func (o *DownloadUserOrderReceiptOK) GetPayload() io.Writer

func (*DownloadUserOrderReceiptOK) ToJSONString

func (o *DownloadUserOrderReceiptOK) ToJSONString() string

type DownloadUserOrderReceiptParams

type DownloadUserOrderReceiptParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetContext

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

SetContext adds the context to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetFlightId

func (o *DownloadUserOrderReceiptParams) SetFlightId(flightId string)

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

func (*DownloadUserOrderReceiptParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download user order receipt params

func (*DownloadUserOrderReceiptParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*FulfillUserOrderBadRequest) ToJSONString

func (o *FulfillUserOrderBadRequest) ToJSONString() string

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

func (*FulfillUserOrderConflict) ToJSONString

func (o *FulfillUserOrderConflict) ToJSONString() string

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

func (*FulfillUserOrderNotFound) ToJSONString

func (o *FulfillUserOrderNotFound) ToJSONString() string

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

func (*FulfillUserOrderOK) ToJSONString

func (o *FulfillUserOrderOK) ToJSONString() string

type FulfillUserOrderParams

type FulfillUserOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the fulfill user order params

func (*FulfillUserOrderParams) SetContext

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

SetContext adds the context to the fulfill user order params

func (*FulfillUserOrderParams) SetFlightId

func (o *FulfillUserOrderParams) SetFlightId(flightId string)

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

func (*FulfillUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the fulfill user order params

func (*FulfillUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*GetOrderNotFound) ToJSONString

func (o *GetOrderNotFound) ToJSONString() string

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

func (*GetOrderOK) ToJSONString

func (o *GetOrderOK) ToJSONString() string

type GetOrderParams

type GetOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get order params

func (*GetOrderParams) SetContext

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

SetContext adds the context to the get order params

func (*GetOrderParams) SetFlightId

func (o *GetOrderParams) SetFlightId(flightId string)

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

func (*GetOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get order params

func (*GetOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*GetOrderStatisticsOK) ToJSONString

func (o *GetOrderStatisticsOK) ToJSONString() string

type GetOrderStatisticsParams

type GetOrderStatisticsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get order statistics params

func (*GetOrderStatisticsParams) SetContext

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

SetContext adds the context to the get order statistics params

func (*GetOrderStatisticsParams) SetFlightId

func (o *GetOrderStatisticsParams) SetFlightId(flightId string)

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

func (*GetOrderStatisticsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get order statistics params

func (*GetOrderStatisticsParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*GetUserOrderGrantOK) ToJSONString

func (o *GetUserOrderGrantOK) ToJSONString() string

type GetUserOrderGrantParams

type GetUserOrderGrantParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get user order grant params

func (*GetUserOrderGrantParams) SetContext

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

SetContext adds the context to the get user order grant params

func (*GetUserOrderGrantParams) SetFlightId

func (o *GetUserOrderGrantParams) SetFlightId(flightId string)

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

func (*GetUserOrderGrantParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order grant params

func (*GetUserOrderGrantParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*GetUserOrderHistoriesOK) ToJSONString

func (o *GetUserOrderHistoriesOK) ToJSONString() string

type GetUserOrderHistoriesParams

type GetUserOrderHistoriesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get user order histories params

func (*GetUserOrderHistoriesParams) SetContext

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

SetContext adds the context to the get user order histories params

func (*GetUserOrderHistoriesParams) SetFlightId

func (o *GetUserOrderHistoriesParams) SetFlightId(flightId string)

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

func (*GetUserOrderHistoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order histories params

func (*GetUserOrderHistoriesParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*GetUserOrderNotFound) ToJSONString

func (o *GetUserOrderNotFound) ToJSONString() string

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

func (*GetUserOrderOK) ToJSONString

func (o *GetUserOrderOK) ToJSONString() string

type GetUserOrderParams

type GetUserOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the get user order params

func (*GetUserOrderParams) SetContext

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

SetContext adds the context to the get user order params

func (*GetUserOrderParams) SetFlightId

func (o *GetUserOrderParams) SetFlightId(flightId string)

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

func (*GetUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user order params

func (*GetUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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 {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.TradeNotification
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the process user order notification params

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

func (o *ProcessUserOrderNotificationParams) SetFlightId(flightId string)

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

func (*ProcessUserOrderNotificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the process user order notification params

func (*ProcessUserOrderNotificationParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*PublicCancelUserOrderConflict) ToJSONString

func (o *PublicCancelUserOrderConflict) ToJSONString() string

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

func (*PublicCancelUserOrderNotFound) ToJSONString

func (o *PublicCancelUserOrderNotFound) ToJSONString() string

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

func (*PublicCancelUserOrderOK) ToJSONString

func (o *PublicCancelUserOrderOK) ToJSONString() string

type PublicCancelUserOrderParams

type PublicCancelUserOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public cancel user order params

func (*PublicCancelUserOrderParams) SetContext

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

SetContext adds the context to the public cancel user order params

func (*PublicCancelUserOrderParams) SetFlightId

func (o *PublicCancelUserOrderParams) SetFlightId(flightId string)

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

func (*PublicCancelUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public cancel user order params

func (*PublicCancelUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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>20018</td><td>ecommerce item type not supported</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>32125</td><td>The user does not meet the purchase conditions</td></tr><tr><td>32126</td><td>Section ID is required for placing this order</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><tr><td>32127</td><td>Discount code [{code}] can't be used on this item: {tips}</td></tr><tr><td>32128</td><td>Discount code [{code}] can not be used with other code together</td></tr><tr><td>32129</td><td>Can't use discount code on free order</td></tr><tr><td>32130</td><td>The total discount amount cannot exceed the order price</td></tr></table>

func NewPublicCreateUserOrderBadRequest

func NewPublicCreateUserOrderBadRequest() *PublicCreateUserOrderBadRequest

NewPublicCreateUserOrderBadRequest creates a PublicCreateUserOrderBadRequest with default headers values

func (*PublicCreateUserOrderBadRequest) Error

func (*PublicCreateUserOrderBadRequest) GetPayload

func (*PublicCreateUserOrderBadRequest) ToJSONString

func (o *PublicCreateUserOrderBadRequest) ToJSONString() string

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>20024</td><td>insufficient inventory capacity (max. slots)</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>32178</td><td>User [{userId}] already owned all durable items in flexible bundle [{bundleId}], namespace: [{namespace}]</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><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37175</td><td>Exceeded max redeem count per code per user [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr><tr><td>37179</td><td>Exceeded max redeem count per campaign per user [{maxCount}]</td></tr></table>

func NewPublicCreateUserOrderConflict

func NewPublicCreateUserOrderConflict() *PublicCreateUserOrderConflict

NewPublicCreateUserOrderConflict creates a PublicCreateUserOrderConflict with default headers values

func (*PublicCreateUserOrderConflict) Error

func (*PublicCreateUserOrderConflict) GetPayload

func (*PublicCreateUserOrderConflict) ToJSONString

func (o *PublicCreateUserOrderConflict) ToJSONString() string

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

func (*PublicCreateUserOrderCreated) ToJSONString

func (o *PublicCreateUserOrderCreated) ToJSONString() string

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

func (*PublicCreateUserOrderForbidden) ToJSONString

func (o *PublicCreateUserOrderForbidden) ToJSONString() string

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>30142</td><td>Published store 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><tr><td>1100001</td><td>record not found: inventory</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicCreateUserOrderNotFound

func NewPublicCreateUserOrderNotFound() *PublicCreateUserOrderNotFound

NewPublicCreateUserOrderNotFound creates a PublicCreateUserOrderNotFound with default headers values

func (*PublicCreateUserOrderNotFound) Error

func (*PublicCreateUserOrderNotFound) GetPayload

func (*PublicCreateUserOrderNotFound) ToJSONString

func (o *PublicCreateUserOrderNotFound) ToJSONString() string

type PublicCreateUserOrderParams

type PublicCreateUserOrderParams struct {

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

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public create user order params

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

func (o *PublicCreateUserOrderParams) SetFlightId(flightId string)

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

func (*PublicCreateUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public create user order params

func (*PublicCreateUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*PublicCreateUserOrderUnprocessableEntity) ToJSONString

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

func (*PublicDownloadUserOrderReceiptConflict) ToJSONString

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

func (*PublicDownloadUserOrderReceiptNotFound) ToJSONString

type PublicDownloadUserOrderReceiptOK

type PublicDownloadUserOrderReceiptOK struct {
	Payload io.Writer
}

PublicDownloadUserOrderReceiptOK handles this case with default header values.

Successful operation

func NewPublicDownloadUserOrderReceiptOK

func NewPublicDownloadUserOrderReceiptOK(writer io.Writer) *PublicDownloadUserOrderReceiptOK

NewPublicDownloadUserOrderReceiptOK creates a PublicDownloadUserOrderReceiptOK with default headers values

func (*PublicDownloadUserOrderReceiptOK) Error

func (*PublicDownloadUserOrderReceiptOK) GetPayload

func (o *PublicDownloadUserOrderReceiptOK) GetPayload() io.Writer

func (*PublicDownloadUserOrderReceiptOK) ToJSONString

func (o *PublicDownloadUserOrderReceiptOK) ToJSONString() string

type PublicDownloadUserOrderReceiptParams

type PublicDownloadUserOrderReceiptParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public download user order receipt params

func (*PublicDownloadUserOrderReceiptParams) SetContext

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

func (*PublicDownloadUserOrderReceiptParams) SetFlightId

func (o *PublicDownloadUserOrderReceiptParams) SetFlightId(flightId string)

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

func (*PublicDownloadUserOrderReceiptParams) SetHTTPClient

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

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

func (*PublicDownloadUserOrderReceiptParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*PublicGetUserOrderHistoriesOK) ToJSONString

func (o *PublicGetUserOrderHistoriesOK) ToJSONString() string

type PublicGetUserOrderHistoriesParams

type PublicGetUserOrderHistoriesParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public get user order histories params

func (*PublicGetUserOrderHistoriesParams) SetContext

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

func (*PublicGetUserOrderHistoriesParams) SetFlightId

func (o *PublicGetUserOrderHistoriesParams) SetFlightId(flightId string)

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

func (*PublicGetUserOrderHistoriesParams) SetHTTPClient

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

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

func (*PublicGetUserOrderHistoriesParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*PublicGetUserOrderNotFound) ToJSONString

func (o *PublicGetUserOrderNotFound) ToJSONString() string

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

func (*PublicGetUserOrderOK) ToJSONString

func (o *PublicGetUserOrderOK) ToJSONString() string

type PublicGetUserOrderParams

type PublicGetUserOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public get user order params

func (*PublicGetUserOrderParams) SetContext

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

SetContext adds the context to the public get user order params

func (*PublicGetUserOrderParams) SetFlightId

func (o *PublicGetUserOrderParams) SetFlightId(flightId string)

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

func (*PublicGetUserOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get user order params

func (*PublicGetUserOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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 PublicPreviewOrderPriceBadRequest

type PublicPreviewOrderPriceBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicPreviewOrderPriceBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>32127</td><td>Discount code [{code}] can't be used on this item: {tips}</td></tr><tr><td>32128</td><td>Discount code [{code}] can not be used with other code together</td></tr><tr><td>32129</td><td>Can't use discount code on free order</td></tr><tr><td>32130</td><td>The total discount amount cannot exceed the order price</td></tr></table>

func NewPublicPreviewOrderPriceBadRequest

func NewPublicPreviewOrderPriceBadRequest() *PublicPreviewOrderPriceBadRequest

NewPublicPreviewOrderPriceBadRequest creates a PublicPreviewOrderPriceBadRequest with default headers values

func (*PublicPreviewOrderPriceBadRequest) Error

func (*PublicPreviewOrderPriceBadRequest) GetPayload

func (*PublicPreviewOrderPriceBadRequest) ToJSONString

func (o *PublicPreviewOrderPriceBadRequest) ToJSONString() string

type PublicPreviewOrderPriceConflict

type PublicPreviewOrderPriceConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicPreviewOrderPriceConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>37172</td><td>Campaign [{campaignId}] is inactive in namespace [{namespace}]</td></tr><tr><td>37173</td><td>Code [{code}] is inactive in namespace [{namespace}]</td></tr><tr><td>37174</td><td>Exceeded max redeem count per code [{maxCount}]</td></tr><tr><td>37175</td><td>Exceeded max redeem count per code per user [{maxCount}]</td></tr><tr><td>37177</td><td>Code redemption not started</td></tr><tr><td>37178</td><td>Code redemption already ended</td></tr><tr><td>37179</td><td>Exceeded max redeem count per campaign per user [{maxCount}]</td></tr></table>

func NewPublicPreviewOrderPriceConflict

func NewPublicPreviewOrderPriceConflict() *PublicPreviewOrderPriceConflict

NewPublicPreviewOrderPriceConflict creates a PublicPreviewOrderPriceConflict with default headers values

func (*PublicPreviewOrderPriceConflict) Error

func (*PublicPreviewOrderPriceConflict) GetPayload

func (*PublicPreviewOrderPriceConflict) ToJSONString

func (o *PublicPreviewOrderPriceConflict) ToJSONString() string

type PublicPreviewOrderPriceForbidden

type PublicPreviewOrderPriceForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicPreviewOrderPriceForbidden 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 NewPublicPreviewOrderPriceForbidden

func NewPublicPreviewOrderPriceForbidden() *PublicPreviewOrderPriceForbidden

NewPublicPreviewOrderPriceForbidden creates a PublicPreviewOrderPriceForbidden with default headers values

func (*PublicPreviewOrderPriceForbidden) Error

func (*PublicPreviewOrderPriceForbidden) GetPayload

func (*PublicPreviewOrderPriceForbidden) ToJSONString

func (o *PublicPreviewOrderPriceForbidden) ToJSONString() string

type PublicPreviewOrderPriceNotFound

type PublicPreviewOrderPriceNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicPreviewOrderPriceNotFound 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>30142</td><td>Published store does not exist in namespace [{namespace}]</td></tr><tr><td>37142</td><td>Code [{code}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicPreviewOrderPriceNotFound

func NewPublicPreviewOrderPriceNotFound() *PublicPreviewOrderPriceNotFound

NewPublicPreviewOrderPriceNotFound creates a PublicPreviewOrderPriceNotFound with default headers values

func (*PublicPreviewOrderPriceNotFound) Error

func (*PublicPreviewOrderPriceNotFound) GetPayload

func (*PublicPreviewOrderPriceNotFound) ToJSONString

func (o *PublicPreviewOrderPriceNotFound) ToJSONString() string

type PublicPreviewOrderPriceOK

type PublicPreviewOrderPriceOK struct {
	Payload *platformclientmodels.OrderDiscountPreviewResponse
}

PublicPreviewOrderPriceOK handles this case with default header values.

successful operation

func NewPublicPreviewOrderPriceOK

func NewPublicPreviewOrderPriceOK() *PublicPreviewOrderPriceOK

NewPublicPreviewOrderPriceOK creates a PublicPreviewOrderPriceOK with default headers values

func (*PublicPreviewOrderPriceOK) Error

func (o *PublicPreviewOrderPriceOK) Error() string

func (*PublicPreviewOrderPriceOK) GetPayload

func (*PublicPreviewOrderPriceOK) ToJSONString

func (o *PublicPreviewOrderPriceOK) ToJSONString() string

type PublicPreviewOrderPriceParams

type PublicPreviewOrderPriceParams struct {

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

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

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

PublicPreviewOrderPriceParams contains all the parameters to send to the API endpoint for the public preview order price operation typically these are written to a http.Request

func NewPublicPreviewOrderPriceParams

func NewPublicPreviewOrderPriceParams() *PublicPreviewOrderPriceParams

NewPublicPreviewOrderPriceParams creates a new PublicPreviewOrderPriceParams object with the default values initialized.

func NewPublicPreviewOrderPriceParamsWithContext

func NewPublicPreviewOrderPriceParamsWithContext(ctx context.Context) *PublicPreviewOrderPriceParams

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

func NewPublicPreviewOrderPriceParamsWithHTTPClient

func NewPublicPreviewOrderPriceParamsWithHTTPClient(client *http.Client) *PublicPreviewOrderPriceParams

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

func NewPublicPreviewOrderPriceParamsWithTimeout

func NewPublicPreviewOrderPriceParamsWithTimeout(timeout time.Duration) *PublicPreviewOrderPriceParams

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

func (*PublicPreviewOrderPriceParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetBody

SetBody adds the body to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetContext

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

SetContext adds the context to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetFlightId

func (o *PublicPreviewOrderPriceParams) SetFlightId(flightId string)

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

func (*PublicPreviewOrderPriceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetNamespace

func (o *PublicPreviewOrderPriceParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetTimeout

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

SetTimeout adds the timeout to the public preview order price params

func (*PublicPreviewOrderPriceParams) SetUserID

func (o *PublicPreviewOrderPriceParams) SetUserID(userID string)

SetUserID adds the userId to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithBody

WithBody adds the body to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithContext

WithContext adds the context to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithNamespace

WithNamespace adds the namespace to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithTimeout

WithTimeout adds the timeout to the public preview order price params

func (*PublicPreviewOrderPriceParams) WithUserID

WithUserID adds the userID to the public preview order price params

func (*PublicPreviewOrderPriceParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicPreviewOrderPriceReader

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

PublicPreviewOrderPriceReader is a Reader for the PublicPreviewOrderPrice structure.

func (*PublicPreviewOrderPriceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicPreviewOrderPriceUnprocessableEntity

type PublicPreviewOrderPriceUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

PublicPreviewOrderPriceUnprocessableEntity 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 NewPublicPreviewOrderPriceUnprocessableEntity

func NewPublicPreviewOrderPriceUnprocessableEntity() *PublicPreviewOrderPriceUnprocessableEntity

NewPublicPreviewOrderPriceUnprocessableEntity creates a PublicPreviewOrderPriceUnprocessableEntity with default headers values

func (*PublicPreviewOrderPriceUnprocessableEntity) Error

func (*PublicPreviewOrderPriceUnprocessableEntity) GetPayload

func (*PublicPreviewOrderPriceUnprocessableEntity) ToJSONString

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

func (*PublicQueryUserOrdersOK) ToJSONString

func (o *PublicQueryUserOrdersOK) ToJSONString() string

type PublicQueryUserOrdersParams

type PublicQueryUserOrdersParams struct {

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

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the public query user orders params

func (*PublicQueryUserOrdersParams) SetContext

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

SetContext adds the context to the public query user orders params

func (*PublicQueryUserOrdersParams) SetDiscounted

func (o *PublicQueryUserOrdersParams) SetDiscounted(discounted *bool)

SetDiscounted adds the discounted to the public query user orders params

func (*PublicQueryUserOrdersParams) SetFlightId

func (o *PublicQueryUserOrdersParams) SetFlightId(flightId string)

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

func (*PublicQueryUserOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public query user orders params

func (*PublicQueryUserOrdersParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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) WithDiscounted

func (o *PublicQueryUserOrdersParams) WithDiscounted(discounted *bool) *PublicQueryUserOrdersParams

WithDiscounted adds the discounted 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

func (*QueryOrdersOK) ToJSONString

func (o *QueryOrdersOK) ToJSONString() string

type QueryOrdersParams

type QueryOrdersParams struct {

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

	*/
	EndTime *string
	/*Limit*/
	Limit *int32
	/*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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the query orders params

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

func (o *QueryOrdersParams) SetFlightId(flightId string)

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

func (*QueryOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query orders params

func (*QueryOrdersParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*QueryOrdersUnprocessableEntity) ToJSONString

func (o *QueryOrdersUnprocessableEntity) ToJSONString() string

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

func (*QueryUserOrdersOK) ToJSONString

func (o *QueryUserOrdersOK) ToJSONString() string

type QueryUserOrdersParams

type QueryUserOrdersParams struct {

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

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the query user orders params

func (*QueryUserOrdersParams) SetContext

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

SetContext adds the context to the query user orders params

func (*QueryUserOrdersParams) SetDiscounted

func (o *QueryUserOrdersParams) SetDiscounted(discounted *bool)

SetDiscounted adds the discounted to the query user orders params

func (*QueryUserOrdersParams) SetFlightId

func (o *QueryUserOrdersParams) SetFlightId(flightId string)

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

func (*QueryUserOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query user orders params

func (*QueryUserOrdersParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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) WithDiscounted

func (o *QueryUserOrdersParams) WithDiscounted(discounted *bool) *QueryUserOrdersParams

WithDiscounted adds the discounted 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

func (*RefundOrderConflict) ToJSONString

func (o *RefundOrderConflict) ToJSONString() string

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

func (*RefundOrderNotFound) ToJSONString

func (o *RefundOrderNotFound) ToJSONString() string

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

func (*RefundOrderOK) ToJSONString

func (o *RefundOrderOK) ToJSONString() string

type RefundOrderParams

type RefundOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.OrderRefundCreate
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the refund order params

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

func (o *RefundOrderParams) SetFlightId(flightId string)

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

func (*RefundOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refund order params

func (*RefundOrderParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*RefundOrderUnprocessableEntity) ToJSONString

func (o *RefundOrderUnprocessableEntity) ToJSONString() string

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

func (*UpdateUserOrderStatusConflict) ToJSONString

func (o *UpdateUserOrderStatusConflict) ToJSONString() string

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

func (*UpdateUserOrderStatusNotFound) ToJSONString

func (o *UpdateUserOrderStatusNotFound) ToJSONString() string

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

func (*UpdateUserOrderStatusOK) ToJSONString

func (o *UpdateUserOrderStatusOK) ToJSONString() string

type UpdateUserOrderStatusParams

type UpdateUserOrderStatusParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.OrderUpdate
	/*Namespace*/
	Namespace string
	/*OrderNo*/
	OrderNo string
	/*UserID*/
	UserID string

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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the update user order status params

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

func (o *UpdateUserOrderStatusParams) SetFlightId(flightId string)

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

func (*UpdateUserOrderStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user order status params

func (*UpdateUserOrderStatusParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport 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

func (*UpdateUserOrderStatusUnprocessableEntity) ToJSONString

Source Files

Jump to

Keyboard shortcuts

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