payment

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChargePaymentOrderBadRequest

type ChargePaymentOrderBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

ChargePaymentOrderBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33322</td><td>Payment provider [{paymentProvider}] not supported</td></tr></table>

func NewChargePaymentOrderBadRequest

func NewChargePaymentOrderBadRequest() *ChargePaymentOrderBadRequest

NewChargePaymentOrderBadRequest creates a ChargePaymentOrderBadRequest with default headers values

func (*ChargePaymentOrderBadRequest) Error

func (*ChargePaymentOrderBadRequest) GetPayload

type ChargePaymentOrderConflict

type ChargePaymentOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

ChargePaymentOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33171</td><td>Invalid payment order status [{status}] for payment order [{paymentOrderNo}]</td></tr></table>

func NewChargePaymentOrderConflict

func NewChargePaymentOrderConflict() *ChargePaymentOrderConflict

NewChargePaymentOrderConflict creates a ChargePaymentOrderConflict with default headers values

func (*ChargePaymentOrderConflict) Error

func (*ChargePaymentOrderConflict) GetPayload

type ChargePaymentOrderNotFound

type ChargePaymentOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

ChargePaymentOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr></table>

func NewChargePaymentOrderNotFound

func NewChargePaymentOrderNotFound() *ChargePaymentOrderNotFound

NewChargePaymentOrderNotFound creates a ChargePaymentOrderNotFound with default headers values

func (*ChargePaymentOrderNotFound) Error

func (*ChargePaymentOrderNotFound) GetPayload

type ChargePaymentOrderOK

type ChargePaymentOrderOK struct {
	Payload *platformclientmodels.PaymentOrderInfo
}

ChargePaymentOrderOK handles this case with default header values.

successful operation

func NewChargePaymentOrderOK

func NewChargePaymentOrderOK() *ChargePaymentOrderOK

NewChargePaymentOrderOK creates a ChargePaymentOrderOK with default headers values

func (*ChargePaymentOrderOK) Error

func (o *ChargePaymentOrderOK) Error() string

func (*ChargePaymentOrderOK) GetPayload

type ChargePaymentOrderParams

type ChargePaymentOrderParams struct {

	/*Body*/
	Body *platformclientmodels.PaymentOrderChargeRequest
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string

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

ChargePaymentOrderParams contains all the parameters to send to the API endpoint for the charge payment order operation typically these are written to a http.Request

func NewChargePaymentOrderParams

func NewChargePaymentOrderParams() *ChargePaymentOrderParams

NewChargePaymentOrderParams creates a new ChargePaymentOrderParams object with the default values initialized.

func NewChargePaymentOrderParamsWithContext

func NewChargePaymentOrderParamsWithContext(ctx context.Context) *ChargePaymentOrderParams

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

func NewChargePaymentOrderParamsWithHTTPClient

func NewChargePaymentOrderParamsWithHTTPClient(client *http.Client) *ChargePaymentOrderParams

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

func NewChargePaymentOrderParamsWithTimeout

func NewChargePaymentOrderParamsWithTimeout(timeout time.Duration) *ChargePaymentOrderParams

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

func (*ChargePaymentOrderParams) SetBody

SetBody adds the body to the charge payment order params

func (*ChargePaymentOrderParams) SetContext

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

SetContext adds the context to the charge payment order params

func (*ChargePaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the charge payment order params

func (*ChargePaymentOrderParams) SetNamespace

func (o *ChargePaymentOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the charge payment order params

func (*ChargePaymentOrderParams) SetPaymentOrderNo

func (o *ChargePaymentOrderParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the charge payment order params

func (*ChargePaymentOrderParams) SetTimeout

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

SetTimeout adds the timeout to the charge payment order params

func (*ChargePaymentOrderParams) WithBody

WithBody adds the body to the charge payment order params

func (*ChargePaymentOrderParams) WithContext

WithContext adds the context to the charge payment order params

func (*ChargePaymentOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the charge payment order params

func (*ChargePaymentOrderParams) WithNamespace

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

WithNamespace adds the namespace to the charge payment order params

func (*ChargePaymentOrderParams) WithPaymentOrderNo

func (o *ChargePaymentOrderParams) WithPaymentOrderNo(paymentOrderNo string) *ChargePaymentOrderParams

WithPaymentOrderNo adds the paymentOrderNo to the charge payment order params

func (*ChargePaymentOrderParams) WithTimeout

WithTimeout adds the timeout to the charge payment order params

func (*ChargePaymentOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ChargePaymentOrderReader

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

ChargePaymentOrderReader is a Reader for the ChargePaymentOrder structure.

func (*ChargePaymentOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for payment API

func (*Client) ChargePaymentOrder

ChargePaymentOrder charges payment order without payment flow

<b>[TEST FACILITY ONLY]</b> Charge payment order without payment flow for unpaid payment order, usually for test usage to simulate real currency payment process.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)</li><li><i>Returns</i>: payment order instance</li></ul>

func (*Client) CreateUserPaymentOrder

CreateUserPaymentOrder creates payment order

<b>[SERVICE COMMUNICATION ONLY]</b> This API is used to create payment order from justice service. The result contains the payment station url.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=1 (CREATE)</li><li>It will be forbidden while the user is banned: PAYMENT_INITIATE or ORDER_AND_PAYMENT</li><li><i>Returns</i>: created order</li></ul>

func (*Client) GetPaymentOrder

GetPaymentOrder gets payment order

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

func (*Client) GetPaymentOrderChargeStatus

GetPaymentOrderChargeStatus gets payment order charge status

Get payment order charge status.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)</li><li><i>Returns</i>: payment order charge status</li></ul>

func (*Client) ListExtOrderNoByExtTxID

func (a *Client) ListExtOrderNoByExtTxID(params *ListExtOrderNoByExtTxIDParams, authInfo runtime.ClientAuthInfoWriter) (*ListExtOrderNoByExtTxIDOK, error)

ListExtOrderNoByExtTxID lists external order no by external transaction id

List external order No by external transaction id.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)</li><li><i>Returns</i>: payment orders</li></ul>

func (*Client) QueryPaymentNotifications

func (a *Client) QueryPaymentNotifications(params *QueryPaymentNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentNotificationsOK, error)

QueryPaymentNotifications queries payment notifications

Query payment notifications.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:PAYMENT:NOTIFICATION", action=2 (READ)</li><li><i>Returns</i>: Payment notifications</li></ul>

func (*Client) QueryPaymentOrders

func (a *Client) QueryPaymentOrders(params *QueryPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentOrdersOK, error)

QueryPaymentOrders queries payment orders

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

func (*Client) RefundUserPaymentOrder

RefundUserPaymentOrder refunds payment order

<b>[SERVICE COMMUNICATION ONLY]</b> This API is used to refund order by paymentOrderNo from justice service.<br>Other detail info: <ul><li><i>Required permission</i>: resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=4 (UPDATE)</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ChargePaymentOrder(params *ChargePaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*ChargePaymentOrderOK, *ChargePaymentOrderBadRequest, *ChargePaymentOrderNotFound, *ChargePaymentOrderConflict, error)

	CreateUserPaymentOrder(params *CreateUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserPaymentOrderCreated, *CreateUserPaymentOrderBadRequest, *CreateUserPaymentOrderForbidden, *CreateUserPaymentOrderNotFound, *CreateUserPaymentOrderConflict, *CreateUserPaymentOrderUnprocessableEntity, error)

	GetPaymentOrder(params *GetPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderOK, *GetPaymentOrderNotFound, error)

	GetPaymentOrderChargeStatus(params *GetPaymentOrderChargeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderChargeStatusOK, *GetPaymentOrderChargeStatusNotFound, error)

	ListExtOrderNoByExtTxID(params *ListExtOrderNoByExtTxIDParams, authInfo runtime.ClientAuthInfoWriter) (*ListExtOrderNoByExtTxIDOK, error)

	QueryPaymentNotifications(params *QueryPaymentNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentNotificationsOK, error)

	QueryPaymentOrders(params *QueryPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentOrdersOK, error)

	RefundUserPaymentOrder(params *RefundUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundUserPaymentOrderOK, *RefundUserPaymentOrderNotFound, *RefundUserPaymentOrderConflict, *RefundUserPaymentOrderUnprocessableEntity, 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 payment API client.

type CreateUserPaymentOrderBadRequest

type CreateUserPaymentOrderBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateUserPaymentOrderBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33121</td><td>Recurring payment failed with code: [{errorCode}] and message: [{errorMessage}]</td></tr><tr><td>33122</td><td>Subscription not match when create payment order</td></tr></table>

func NewCreateUserPaymentOrderBadRequest

func NewCreateUserPaymentOrderBadRequest() *CreateUserPaymentOrderBadRequest

NewCreateUserPaymentOrderBadRequest creates a CreateUserPaymentOrderBadRequest with default headers values

func (*CreateUserPaymentOrderBadRequest) Error

func (*CreateUserPaymentOrderBadRequest) GetPayload

type CreateUserPaymentOrderConflict

type CreateUserPaymentOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateUserPaymentOrderConflict 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 NewCreateUserPaymentOrderConflict

func NewCreateUserPaymentOrderConflict() *CreateUserPaymentOrderConflict

NewCreateUserPaymentOrderConflict creates a CreateUserPaymentOrderConflict with default headers values

func (*CreateUserPaymentOrderConflict) Error

func (*CreateUserPaymentOrderConflict) GetPayload

type CreateUserPaymentOrderCreated

type CreateUserPaymentOrderCreated struct {
	Payload *platformclientmodels.PaymentOrderInfo
}

CreateUserPaymentOrderCreated handles this case with default header values.

successful operation

func NewCreateUserPaymentOrderCreated

func NewCreateUserPaymentOrderCreated() *CreateUserPaymentOrderCreated

NewCreateUserPaymentOrderCreated creates a CreateUserPaymentOrderCreated with default headers values

func (*CreateUserPaymentOrderCreated) Error

func (*CreateUserPaymentOrderCreated) GetPayload

type CreateUserPaymentOrderForbidden

type CreateUserPaymentOrderForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateUserPaymentOrderForbidden 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 NewCreateUserPaymentOrderForbidden

func NewCreateUserPaymentOrderForbidden() *CreateUserPaymentOrderForbidden

NewCreateUserPaymentOrderForbidden creates a CreateUserPaymentOrderForbidden with default headers values

func (*CreateUserPaymentOrderForbidden) Error

func (*CreateUserPaymentOrderForbidden) GetPayload

type CreateUserPaymentOrderNotFound

type CreateUserPaymentOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

CreateUserPaymentOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>36141</td><td>Currency [{currencyCode}] does not exist in namespace [{namespace}]</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr><tr><td>33145</td><td>Recurring token not found</td></tr><tr><td>20008</td><td>user [{userId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewCreateUserPaymentOrderNotFound

func NewCreateUserPaymentOrderNotFound() *CreateUserPaymentOrderNotFound

NewCreateUserPaymentOrderNotFound creates a CreateUserPaymentOrderNotFound with default headers values

func (*CreateUserPaymentOrderNotFound) Error

func (*CreateUserPaymentOrderNotFound) GetPayload

type CreateUserPaymentOrderParams

type CreateUserPaymentOrderParams struct {

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

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

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

func NewCreateUserPaymentOrderParams

func NewCreateUserPaymentOrderParams() *CreateUserPaymentOrderParams

NewCreateUserPaymentOrderParams creates a new CreateUserPaymentOrderParams object with the default values initialized.

func NewCreateUserPaymentOrderParamsWithContext

func NewCreateUserPaymentOrderParamsWithContext(ctx context.Context) *CreateUserPaymentOrderParams

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

func NewCreateUserPaymentOrderParamsWithHTTPClient

func NewCreateUserPaymentOrderParamsWithHTTPClient(client *http.Client) *CreateUserPaymentOrderParams

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

func NewCreateUserPaymentOrderParamsWithTimeout

func NewCreateUserPaymentOrderParamsWithTimeout(timeout time.Duration) *CreateUserPaymentOrderParams

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

func (*CreateUserPaymentOrderParams) SetBody

SetBody adds the body to the create user payment order params

func (*CreateUserPaymentOrderParams) SetContext

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

SetContext adds the context to the create user payment order params

func (*CreateUserPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user payment order params

func (*CreateUserPaymentOrderParams) SetNamespace

func (o *CreateUserPaymentOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the create user payment order params

func (*CreateUserPaymentOrderParams) SetTimeout

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

SetTimeout adds the timeout to the create user payment order params

func (*CreateUserPaymentOrderParams) SetUserID

func (o *CreateUserPaymentOrderParams) SetUserID(userID string)

SetUserID adds the userId to the create user payment order params

func (*CreateUserPaymentOrderParams) WithBody

WithBody adds the body to the create user payment order params

func (*CreateUserPaymentOrderParams) WithContext

WithContext adds the context to the create user payment order params

func (*CreateUserPaymentOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create user payment order params

func (*CreateUserPaymentOrderParams) WithNamespace

WithNamespace adds the namespace to the create user payment order params

func (*CreateUserPaymentOrderParams) WithTimeout

WithTimeout adds the timeout to the create user payment order params

func (*CreateUserPaymentOrderParams) WithUserID

WithUserID adds the userID to the create user payment order params

func (*CreateUserPaymentOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateUserPaymentOrderReader

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

CreateUserPaymentOrderReader is a Reader for the CreateUserPaymentOrder structure.

func (*CreateUserPaymentOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserPaymentOrderUnprocessableEntity

type CreateUserPaymentOrderUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

CreateUserPaymentOrderUnprocessableEntity 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 NewCreateUserPaymentOrderUnprocessableEntity

func NewCreateUserPaymentOrderUnprocessableEntity() *CreateUserPaymentOrderUnprocessableEntity

NewCreateUserPaymentOrderUnprocessableEntity creates a CreateUserPaymentOrderUnprocessableEntity with default headers values

func (*CreateUserPaymentOrderUnprocessableEntity) Error

func (*CreateUserPaymentOrderUnprocessableEntity) GetPayload

type GetPaymentOrderChargeStatusNotFound

type GetPaymentOrderChargeStatusNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetPaymentOrderChargeStatusNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr></table>

func NewGetPaymentOrderChargeStatusNotFound

func NewGetPaymentOrderChargeStatusNotFound() *GetPaymentOrderChargeStatusNotFound

NewGetPaymentOrderChargeStatusNotFound creates a GetPaymentOrderChargeStatusNotFound with default headers values

func (*GetPaymentOrderChargeStatusNotFound) Error

func (*GetPaymentOrderChargeStatusNotFound) GetPayload

type GetPaymentOrderChargeStatusOK

type GetPaymentOrderChargeStatusOK struct {
	Payload *platformclientmodels.PaymentOrderChargeStatus
}

GetPaymentOrderChargeStatusOK handles this case with default header values.

successful operation

func NewGetPaymentOrderChargeStatusOK

func NewGetPaymentOrderChargeStatusOK() *GetPaymentOrderChargeStatusOK

NewGetPaymentOrderChargeStatusOK creates a GetPaymentOrderChargeStatusOK with default headers values

func (*GetPaymentOrderChargeStatusOK) Error

func (*GetPaymentOrderChargeStatusOK) GetPayload

type GetPaymentOrderChargeStatusParams

type GetPaymentOrderChargeStatusParams struct {

	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string

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

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

func NewGetPaymentOrderChargeStatusParams

func NewGetPaymentOrderChargeStatusParams() *GetPaymentOrderChargeStatusParams

NewGetPaymentOrderChargeStatusParams creates a new GetPaymentOrderChargeStatusParams object with the default values initialized.

func NewGetPaymentOrderChargeStatusParamsWithContext

func NewGetPaymentOrderChargeStatusParamsWithContext(ctx context.Context) *GetPaymentOrderChargeStatusParams

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

func NewGetPaymentOrderChargeStatusParamsWithHTTPClient

func NewGetPaymentOrderChargeStatusParamsWithHTTPClient(client *http.Client) *GetPaymentOrderChargeStatusParams

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

func NewGetPaymentOrderChargeStatusParamsWithTimeout

func NewGetPaymentOrderChargeStatusParamsWithTimeout(timeout time.Duration) *GetPaymentOrderChargeStatusParams

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

func (*GetPaymentOrderChargeStatusParams) SetContext

SetContext adds the context to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) SetNamespace

func (o *GetPaymentOrderChargeStatusParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) SetPaymentOrderNo

func (o *GetPaymentOrderChargeStatusParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) SetTimeout

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

SetTimeout adds the timeout to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WithContext

WithContext adds the context to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WithNamespace

WithNamespace adds the namespace to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WithPaymentOrderNo

func (o *GetPaymentOrderChargeStatusParams) WithPaymentOrderNo(paymentOrderNo string) *GetPaymentOrderChargeStatusParams

WithPaymentOrderNo adds the paymentOrderNo to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WithTimeout

WithTimeout adds the timeout to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPaymentOrderChargeStatusReader

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

GetPaymentOrderChargeStatusReader is a Reader for the GetPaymentOrderChargeStatus structure.

func (*GetPaymentOrderChargeStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPaymentOrderNotFound

type GetPaymentOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetPaymentOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr></table>

func NewGetPaymentOrderNotFound

func NewGetPaymentOrderNotFound() *GetPaymentOrderNotFound

NewGetPaymentOrderNotFound creates a GetPaymentOrderNotFound with default headers values

func (*GetPaymentOrderNotFound) Error

func (o *GetPaymentOrderNotFound) Error() string

func (*GetPaymentOrderNotFound) GetPayload

type GetPaymentOrderOK

type GetPaymentOrderOK struct {
	Payload *platformclientmodels.PaymentOrderInfo
}

GetPaymentOrderOK handles this case with default header values.

successful operation

func NewGetPaymentOrderOK

func NewGetPaymentOrderOK() *GetPaymentOrderOK

NewGetPaymentOrderOK creates a GetPaymentOrderOK with default headers values

func (*GetPaymentOrderOK) Error

func (o *GetPaymentOrderOK) Error() string

func (*GetPaymentOrderOK) GetPayload

type GetPaymentOrderParams

type GetPaymentOrderParams struct {

	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string

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

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

func NewGetPaymentOrderParams

func NewGetPaymentOrderParams() *GetPaymentOrderParams

NewGetPaymentOrderParams creates a new GetPaymentOrderParams object with the default values initialized.

func NewGetPaymentOrderParamsWithContext

func NewGetPaymentOrderParamsWithContext(ctx context.Context) *GetPaymentOrderParams

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

func NewGetPaymentOrderParamsWithHTTPClient

func NewGetPaymentOrderParamsWithHTTPClient(client *http.Client) *GetPaymentOrderParams

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

func NewGetPaymentOrderParamsWithTimeout

func NewGetPaymentOrderParamsWithTimeout(timeout time.Duration) *GetPaymentOrderParams

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

func (*GetPaymentOrderParams) SetContext

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

SetContext adds the context to the get payment order params

func (*GetPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment order params

func (*GetPaymentOrderParams) SetNamespace

func (o *GetPaymentOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get payment order params

func (*GetPaymentOrderParams) SetPaymentOrderNo

func (o *GetPaymentOrderParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the get payment order params

func (*GetPaymentOrderParams) SetTimeout

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

SetTimeout adds the timeout to the get payment order params

func (*GetPaymentOrderParams) WithContext

WithContext adds the context to the get payment order params

func (*GetPaymentOrderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get payment order params

func (*GetPaymentOrderParams) WithNamespace

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

WithNamespace adds the namespace to the get payment order params

func (*GetPaymentOrderParams) WithPaymentOrderNo

func (o *GetPaymentOrderParams) WithPaymentOrderNo(paymentOrderNo string) *GetPaymentOrderParams

WithPaymentOrderNo adds the paymentOrderNo to the get payment order params

func (*GetPaymentOrderParams) WithTimeout

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

WithTimeout adds the timeout to the get payment order params

func (*GetPaymentOrderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPaymentOrderReader

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

GetPaymentOrderReader is a Reader for the GetPaymentOrder structure.

func (*GetPaymentOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListExtOrderNoByExtTxIDOK

type ListExtOrderNoByExtTxIDOK struct {
	Payload []string
}

ListExtOrderNoByExtTxIDOK handles this case with default header values.

successful operation

func NewListExtOrderNoByExtTxIDOK

func NewListExtOrderNoByExtTxIDOK() *ListExtOrderNoByExtTxIDOK

NewListExtOrderNoByExtTxIDOK creates a ListExtOrderNoByExtTxIDOK with default headers values

func (*ListExtOrderNoByExtTxIDOK) Error

func (o *ListExtOrderNoByExtTxIDOK) Error() string

func (*ListExtOrderNoByExtTxIDOK) GetPayload

func (o *ListExtOrderNoByExtTxIDOK) GetPayload() []string

type ListExtOrderNoByExtTxIDParams

type ListExtOrderNoByExtTxIDParams struct {

	/*ExtTxID*/
	ExtTxID string
	/*Namespace*/
	Namespace string

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

ListExtOrderNoByExtTxIDParams contains all the parameters to send to the API endpoint for the list ext order no by ext tx Id operation typically these are written to a http.Request

func NewListExtOrderNoByExtTxIDParams

func NewListExtOrderNoByExtTxIDParams() *ListExtOrderNoByExtTxIDParams

NewListExtOrderNoByExtTxIDParams creates a new ListExtOrderNoByExtTxIDParams object with the default values initialized.

func NewListExtOrderNoByExtTxIDParamsWithContext

func NewListExtOrderNoByExtTxIDParamsWithContext(ctx context.Context) *ListExtOrderNoByExtTxIDParams

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

func NewListExtOrderNoByExtTxIDParamsWithHTTPClient

func NewListExtOrderNoByExtTxIDParamsWithHTTPClient(client *http.Client) *ListExtOrderNoByExtTxIDParams

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

func NewListExtOrderNoByExtTxIDParamsWithTimeout

func NewListExtOrderNoByExtTxIDParamsWithTimeout(timeout time.Duration) *ListExtOrderNoByExtTxIDParams

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

func (*ListExtOrderNoByExtTxIDParams) SetContext

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

SetContext adds the context to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) SetExtTxID

func (o *ListExtOrderNoByExtTxIDParams) SetExtTxID(extTxID string)

SetExtTxID adds the extTxId to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) SetNamespace

func (o *ListExtOrderNoByExtTxIDParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) SetTimeout

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

SetTimeout adds the timeout to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WithContext

WithContext adds the context to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WithExtTxID

WithExtTxID adds the extTxID to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WithNamespace

WithNamespace adds the namespace to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WithTimeout

WithTimeout adds the timeout to the list ext order no by ext tx Id params

func (*ListExtOrderNoByExtTxIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListExtOrderNoByExtTxIDReader

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

ListExtOrderNoByExtTxIDReader is a Reader for the ListExtOrderNoByExtTxID structure.

func (*ListExtOrderNoByExtTxIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryPaymentNotificationsOK

type QueryPaymentNotificationsOK struct {
	Payload *platformclientmodels.PaymentNotificationPagingSlicedResult
}

QueryPaymentNotificationsOK handles this case with default header values.

successful operation

func NewQueryPaymentNotificationsOK

func NewQueryPaymentNotificationsOK() *QueryPaymentNotificationsOK

NewQueryPaymentNotificationsOK creates a QueryPaymentNotificationsOK with default headers values

func (*QueryPaymentNotificationsOK) Error

func (*QueryPaymentNotificationsOK) GetPayload

type QueryPaymentNotificationsParams

type QueryPaymentNotificationsParams struct {

	/*EndDate
	  allowed format: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z

	*/
	EndDate *string
	/*ExternalID*/
	ExternalID *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*NotificationSource*/
	NotificationSource *string
	/*NotificationType*/
	NotificationType *string
	/*Offset*/
	Offset *int32
	/*PaymentOrderNo*/
	PaymentOrderNo *string
	/*StartDate
	  allowed format: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z

	*/
	StartDate *string
	/*Status*/
	Status *string

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

QueryPaymentNotificationsParams contains all the parameters to send to the API endpoint for the query payment notifications operation typically these are written to a http.Request

func NewQueryPaymentNotificationsParams

func NewQueryPaymentNotificationsParams() *QueryPaymentNotificationsParams

NewQueryPaymentNotificationsParams creates a new QueryPaymentNotificationsParams object with the default values initialized.

func NewQueryPaymentNotificationsParamsWithContext

func NewQueryPaymentNotificationsParamsWithContext(ctx context.Context) *QueryPaymentNotificationsParams

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

func NewQueryPaymentNotificationsParamsWithHTTPClient

func NewQueryPaymentNotificationsParamsWithHTTPClient(client *http.Client) *QueryPaymentNotificationsParams

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

func NewQueryPaymentNotificationsParamsWithTimeout

func NewQueryPaymentNotificationsParamsWithTimeout(timeout time.Duration) *QueryPaymentNotificationsParams

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

func (*QueryPaymentNotificationsParams) SetContext

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

SetContext adds the context to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetEndDate

func (o *QueryPaymentNotificationsParams) SetEndDate(endDate *string)

SetEndDate adds the endDate to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetExternalID

func (o *QueryPaymentNotificationsParams) SetExternalID(externalID *string)

SetExternalID adds the externalId to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetLimit

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

SetLimit adds the limit to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetNamespace

func (o *QueryPaymentNotificationsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetNotificationSource

func (o *QueryPaymentNotificationsParams) SetNotificationSource(notificationSource *string)

SetNotificationSource adds the notificationSource to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetNotificationType

func (o *QueryPaymentNotificationsParams) SetNotificationType(notificationType *string)

SetNotificationType adds the notificationType to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetOffset

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

SetOffset adds the offset to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetPaymentOrderNo

func (o *QueryPaymentNotificationsParams) SetPaymentOrderNo(paymentOrderNo *string)

SetPaymentOrderNo adds the paymentOrderNo to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetStartDate

func (o *QueryPaymentNotificationsParams) SetStartDate(startDate *string)

SetStartDate adds the startDate to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetStatus

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

SetStatus adds the status to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetTimeout

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

SetTimeout adds the timeout to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithContext

WithContext adds the context to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithEndDate

WithEndDate adds the endDate to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithExternalID

WithExternalID adds the externalID to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithLimit

WithLimit adds the limit to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithNamespace

WithNamespace adds the namespace to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithNotificationSource

func (o *QueryPaymentNotificationsParams) WithNotificationSource(notificationSource *string) *QueryPaymentNotificationsParams

WithNotificationSource adds the notificationSource to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithNotificationType

func (o *QueryPaymentNotificationsParams) WithNotificationType(notificationType *string) *QueryPaymentNotificationsParams

WithNotificationType adds the notificationType to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithOffset

WithOffset adds the offset to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithPaymentOrderNo

func (o *QueryPaymentNotificationsParams) WithPaymentOrderNo(paymentOrderNo *string) *QueryPaymentNotificationsParams

WithPaymentOrderNo adds the paymentOrderNo to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithStartDate

WithStartDate adds the startDate to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithStatus

WithStatus adds the status to the query payment notifications params

func (*QueryPaymentNotificationsParams) WithTimeout

WithTimeout adds the timeout to the query payment notifications params

func (*QueryPaymentNotificationsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryPaymentNotificationsReader

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

QueryPaymentNotificationsReader is a Reader for the QueryPaymentNotifications structure.

func (*QueryPaymentNotificationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryPaymentOrdersOK

type QueryPaymentOrdersOK struct {
	Payload *platformclientmodels.PaymentOrderPagingSlicedResult
}

QueryPaymentOrdersOK handles this case with default header values.

successful operation

func NewQueryPaymentOrdersOK

func NewQueryPaymentOrdersOK() *QueryPaymentOrdersOK

NewQueryPaymentOrdersOK creates a QueryPaymentOrdersOK with default headers values

func (*QueryPaymentOrdersOK) Error

func (o *QueryPaymentOrdersOK) Error() string

func (*QueryPaymentOrdersOK) GetPayload

type QueryPaymentOrdersParams

type QueryPaymentOrdersParams struct {

	/*Channel*/
	Channel *string
	/*ExtTxID*/
	ExtTxID *string
	/*Limit*/
	Limit *int32
	/*Namespace*/
	Namespace string
	/*Offset*/
	Offset *int32
	/*Status*/
	Status *string

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

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

func NewQueryPaymentOrdersParams

func NewQueryPaymentOrdersParams() *QueryPaymentOrdersParams

NewQueryPaymentOrdersParams creates a new QueryPaymentOrdersParams object with the default values initialized.

func NewQueryPaymentOrdersParamsWithContext

func NewQueryPaymentOrdersParamsWithContext(ctx context.Context) *QueryPaymentOrdersParams

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

func NewQueryPaymentOrdersParamsWithHTTPClient

func NewQueryPaymentOrdersParamsWithHTTPClient(client *http.Client) *QueryPaymentOrdersParams

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

func NewQueryPaymentOrdersParamsWithTimeout

func NewQueryPaymentOrdersParamsWithTimeout(timeout time.Duration) *QueryPaymentOrdersParams

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

func (*QueryPaymentOrdersParams) SetChannel

func (o *QueryPaymentOrdersParams) SetChannel(channel *string)

SetChannel adds the channel to the query payment orders params

func (*QueryPaymentOrdersParams) SetContext

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

SetContext adds the context to the query payment orders params

func (*QueryPaymentOrdersParams) SetExtTxID

func (o *QueryPaymentOrdersParams) SetExtTxID(extTxID *string)

SetExtTxID adds the extTxId to the query payment orders params

func (*QueryPaymentOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query payment orders params

func (*QueryPaymentOrdersParams) SetLimit

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

SetLimit adds the limit to the query payment orders params

func (*QueryPaymentOrdersParams) SetNamespace

func (o *QueryPaymentOrdersParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the query payment orders params

func (*QueryPaymentOrdersParams) SetOffset

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

SetOffset adds the offset to the query payment orders params

func (*QueryPaymentOrdersParams) SetStatus

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

SetStatus adds the status to the query payment orders params

func (*QueryPaymentOrdersParams) SetTimeout

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

SetTimeout adds the timeout to the query payment orders params

func (*QueryPaymentOrdersParams) WithChannel

func (o *QueryPaymentOrdersParams) WithChannel(channel *string) *QueryPaymentOrdersParams

WithChannel adds the channel to the query payment orders params

func (*QueryPaymentOrdersParams) WithContext

WithContext adds the context to the query payment orders params

func (*QueryPaymentOrdersParams) WithExtTxID

func (o *QueryPaymentOrdersParams) WithExtTxID(extTxID *string) *QueryPaymentOrdersParams

WithExtTxID adds the extTxID to the query payment orders params

func (*QueryPaymentOrdersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query payment orders params

func (*QueryPaymentOrdersParams) WithLimit

WithLimit adds the limit to the query payment orders params

func (*QueryPaymentOrdersParams) WithNamespace

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

WithNamespace adds the namespace to the query payment orders params

func (*QueryPaymentOrdersParams) WithOffset

WithOffset adds the offset to the query payment orders params

func (*QueryPaymentOrdersParams) WithStatus

WithStatus adds the status to the query payment orders params

func (*QueryPaymentOrdersParams) WithTimeout

WithTimeout adds the timeout to the query payment orders params

func (*QueryPaymentOrdersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryPaymentOrdersReader

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

QueryPaymentOrdersReader is a Reader for the QueryPaymentOrders structure.

func (*QueryPaymentOrdersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefundUserPaymentOrderConflict

type RefundUserPaymentOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

RefundUserPaymentOrderConflict handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33172</td><td>Payment order [{paymentOrderNo}] is not refundable</td></tr></table>

func NewRefundUserPaymentOrderConflict

func NewRefundUserPaymentOrderConflict() *RefundUserPaymentOrderConflict

NewRefundUserPaymentOrderConflict creates a RefundUserPaymentOrderConflict with default headers values

func (*RefundUserPaymentOrderConflict) Error

func (*RefundUserPaymentOrderConflict) GetPayload

type RefundUserPaymentOrderNotFound

type RefundUserPaymentOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

RefundUserPaymentOrderNotFound handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33141</td><td>Payment Order [{paymentOrderNo}] does not exist</td></tr></table>

func NewRefundUserPaymentOrderNotFound

func NewRefundUserPaymentOrderNotFound() *RefundUserPaymentOrderNotFound

NewRefundUserPaymentOrderNotFound creates a RefundUserPaymentOrderNotFound with default headers values

func (*RefundUserPaymentOrderNotFound) Error

func (*RefundUserPaymentOrderNotFound) GetPayload

type RefundUserPaymentOrderOK

type RefundUserPaymentOrderOK struct {
	Payload *platformclientmodels.PaymentOrderInfo
}

RefundUserPaymentOrderOK handles this case with default header values.

successful operation

func NewRefundUserPaymentOrderOK

func NewRefundUserPaymentOrderOK() *RefundUserPaymentOrderOK

NewRefundUserPaymentOrderOK creates a RefundUserPaymentOrderOK with default headers values

func (*RefundUserPaymentOrderOK) Error

func (o *RefundUserPaymentOrderOK) Error() string

func (*RefundUserPaymentOrderOK) GetPayload

type RefundUserPaymentOrderParams

type RefundUserPaymentOrderParams struct {

	/*Body*/
	Body *platformclientmodels.PaymentOrderRefund
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string
	/*UserID*/
	UserID string

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

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

func NewRefundUserPaymentOrderParams

func NewRefundUserPaymentOrderParams() *RefundUserPaymentOrderParams

NewRefundUserPaymentOrderParams creates a new RefundUserPaymentOrderParams object with the default values initialized.

func NewRefundUserPaymentOrderParamsWithContext

func NewRefundUserPaymentOrderParamsWithContext(ctx context.Context) *RefundUserPaymentOrderParams

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

func NewRefundUserPaymentOrderParamsWithHTTPClient

func NewRefundUserPaymentOrderParamsWithHTTPClient(client *http.Client) *RefundUserPaymentOrderParams

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

func NewRefundUserPaymentOrderParamsWithTimeout

func NewRefundUserPaymentOrderParamsWithTimeout(timeout time.Duration) *RefundUserPaymentOrderParams

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

func (*RefundUserPaymentOrderParams) SetBody

SetBody adds the body to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetContext

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

SetContext adds the context to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetNamespace

func (o *RefundUserPaymentOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetPaymentOrderNo

func (o *RefundUserPaymentOrderParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetTimeout

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

SetTimeout adds the timeout to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetUserID

func (o *RefundUserPaymentOrderParams) SetUserID(userID string)

SetUserID adds the userId to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithBody

WithBody adds the body to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithContext

WithContext adds the context to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithNamespace

WithNamespace adds the namespace to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithPaymentOrderNo

func (o *RefundUserPaymentOrderParams) WithPaymentOrderNo(paymentOrderNo string) *RefundUserPaymentOrderParams

WithPaymentOrderNo adds the paymentOrderNo to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithTimeout

WithTimeout adds the timeout to the refund user payment order params

func (*RefundUserPaymentOrderParams) WithUserID

WithUserID adds the userID to the refund user payment order params

func (*RefundUserPaymentOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RefundUserPaymentOrderReader

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

RefundUserPaymentOrderReader is a Reader for the RefundUserPaymentOrder structure.

func (*RefundUserPaymentOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefundUserPaymentOrderUnprocessableEntity

type RefundUserPaymentOrderUnprocessableEntity struct {
	Payload *platformclientmodels.ValidationErrorEntity
}

RefundUserPaymentOrderUnprocessableEntity 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 NewRefundUserPaymentOrderUnprocessableEntity

func NewRefundUserPaymentOrderUnprocessableEntity() *RefundUserPaymentOrderUnprocessableEntity

NewRefundUserPaymentOrderUnprocessableEntity creates a RefundUserPaymentOrderUnprocessableEntity with default headers values

func (*RefundUserPaymentOrderUnprocessableEntity) Error

func (*RefundUserPaymentOrderUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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