payment

package
v0.1.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const (
	QueryPaymentNotificationsADYENConstant    = "ADYEN"
	QueryPaymentNotificationsALIPAYConstant   = "ALIPAY"
	QueryPaymentNotificationsCHECKOUTConstant = "CHECKOUT"
	QueryPaymentNotificationsPAYPALConstant   = "PAYPAL"
	QueryPaymentNotificationsSTRIPEConstant   = "STRIPE"
	QueryPaymentNotificationsWALLETConstant   = "WALLET"
	QueryPaymentNotificationsWXPAYConstant    = "WXPAY"
	QueryPaymentNotificationsXSOLLAConstant   = "XSOLLA"
)

Get the enum in QueryPaymentNotificationsParams

View Source
const (
	QueryPaymentNotificationsERRORConstant     = "ERROR"
	QueryPaymentNotificationsIGNOREDConstant   = "IGNORED"
	QueryPaymentNotificationsPROCESSEDConstant = "PROCESSED"
	QueryPaymentNotificationsWARNConstant      = "WARN"
)

Get the enum in QueryPaymentNotificationsParams

View Source
const (
	QueryPaymentOrdersEXTERNALConstant = "EXTERNAL"
	QueryPaymentOrdersINTERNALConstant = "INTERNAL"
)

Get the enum in QueryPaymentOrdersParams

View Source
const (
	QueryPaymentOrdersAUTHORISEDConstant               = "AUTHORISED"
	QueryPaymentOrdersAUTHORISEFAILEDConstant          = "AUTHORISE_FAILED"
	QueryPaymentOrdersCHARGEBACKConstant               = "CHARGEBACK"
	QueryPaymentOrdersCHARGEBACKREVERSEDConstant       = "CHARGEBACK_REVERSED"
	QueryPaymentOrdersCHARGEDConstant                  = "CHARGED"
	QueryPaymentOrdersCHARGEFAILEDConstant             = "CHARGE_FAILED"
	QueryPaymentOrdersDELETEDConstant                  = "DELETED"
	QueryPaymentOrdersINITConstant                     = "INIT"
	QueryPaymentOrdersNOTIFICATIONOFCHARGEBACKConstant = "NOTIFICATION_OF_CHARGEBACK"
	QueryPaymentOrdersREFUNDEDConstant                 = "REFUNDED"
	QueryPaymentOrdersREFUNDINGConstant                = "REFUNDING"
	QueryPaymentOrdersREFUNDFAILEDConstant             = "REFUND_FAILED"
	QueryPaymentOrdersREQUESTFORINFORMATIONConstant    = "REQUEST_FOR_INFORMATION"
)

Get the enum in QueryPaymentOrdersParams

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

func (*ChargePaymentOrderBadRequest) ToJSONString

func (o *ChargePaymentOrderBadRequest) ToJSONString() string

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

func (*ChargePaymentOrderConflict) ToJSONString

func (o *ChargePaymentOrderConflict) ToJSONString() string

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

func (*ChargePaymentOrderNotFound) ToJSONString

func (o *ChargePaymentOrderNotFound) ToJSONString() string

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

func (*ChargePaymentOrderOK) ToJSONString

func (o *ChargePaymentOrderOK) ToJSONString() string

type ChargePaymentOrderParams

type ChargePaymentOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PaymentOrderChargeRequest
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo 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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the charge payment order params

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

func (o *ChargePaymentOrderParams) SetFlightId(flightId string)

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

func (*ChargePaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the charge payment order params

func (*ChargePaymentOrderParams) SetHTTPClientTransport

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

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

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

ChargePaymentOrder charge payment order without payment flow

[Not Supported Yet In Starter] [TEST FACILITY ONLY] Forbidden in live environment. Charge payment order without payment flow for unpaid payment order, usually for test usage to simulate real currency payment process.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)
  • Returns : payment order instance

func (*Client) ChargePaymentOrderShort

func (a *Client) ChargePaymentOrderShort(params *ChargePaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*ChargePaymentOrderOK, error)

ChargePaymentOrderShort charge payment order without payment flow

[Not Supported Yet In Starter] [TEST FACILITY ONLY] Forbidden in live environment. Charge payment order without payment flow for unpaid payment order, usually for test usage to simulate real currency payment process.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)
  • Returns : payment order instance

func (*Client) CreateUserPaymentOrder deprecated

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

CreateUserPaymentOrder create payment order

[Not Supported Yet In Starter] [SERVICE COMMUNICATION ONLY] This API is used to create payment order from justice service. The result contains the payment station url.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=1 (CREATE)
  • It will be forbidden while the user is banned: PAYMENT_INITIATE or ORDER_AND_PAYMENT
  • Returns : created order

## Restrictions for custom parameters and meta data

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

{ "data.2": "value" }

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

{ "$data": "value" }

func (*Client) CreateUserPaymentOrderShort

func (a *Client) CreateUserPaymentOrderShort(params *CreateUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserPaymentOrderCreated, error)

CreateUserPaymentOrderShort create payment order

[Not Supported Yet In Starter] [SERVICE COMMUNICATION ONLY] This API is used to create payment order from justice service. The result contains the payment station url.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=1 (CREATE)
  • It will be forbidden while the user is banned: PAYMENT_INITIATE or ORDER_AND_PAYMENT
  • Returns : created order

## Restrictions for custom parameters and meta data

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

{ "data.2": "value" }

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

{ "$data": "value" }

func (*Client) GetPaymentOrder deprecated

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

GetPaymentOrder get payment order

[Not Supported Yet In Starter] Get payment order by paymentOrderNo.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment order instance

func (*Client) GetPaymentOrderChargeStatus deprecated

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

GetPaymentOrderChargeStatus get payment order charge status

[Not Supported Yet In Starter] Get payment order charge status.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment order charge status

func (*Client) GetPaymentOrderChargeStatusShort

func (a *Client) GetPaymentOrderChargeStatusShort(params *GetPaymentOrderChargeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderChargeStatusOK, error)

GetPaymentOrderChargeStatusShort get payment order charge status

[Not Supported Yet In Starter] Get payment order charge status.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment order charge status

func (*Client) GetPaymentOrderShort

func (a *Client) GetPaymentOrderShort(params *GetPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderOK, error)

GetPaymentOrderShort get payment order

[Not Supported Yet In Starter] Get payment order by paymentOrderNo.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment order instance

func (*Client) ListExtOrderNoByExtTxID deprecated

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

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

ListExtOrderNoByExtTxID list external order no by external transaction id

[Not Supported Yet In Starter] List external order No by external transaction id.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment orders

func (*Client) ListExtOrderNoByExtTxIDShort

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

ListExtOrderNoByExtTxIDShort list external order no by external transaction id

[Not Supported Yet In Starter] List external order No by external transaction id.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : payment orders

func (*Client) QueryPaymentNotifications deprecated

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

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

QueryPaymentNotifications query payment notifications

[Not Supported Yet In Starter] Query payment notifications.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT:NOTIFICATION", action=2 (READ)
  • Returns : Payment notifications

func (*Client) QueryPaymentNotificationsShort

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

QueryPaymentNotificationsShort query payment notifications

[Not Supported Yet In Starter] Query payment notifications.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT:NOTIFICATION", action=2 (READ)
  • Returns : Payment notifications

func (*Client) QueryPaymentOrders deprecated

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

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

QueryPaymentOrders query payment orders

[Not Supported Yet In Starter] Query payment orders.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : query payment orders

func (*Client) QueryPaymentOrdersShort

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

QueryPaymentOrdersShort query payment orders

[Not Supported Yet In Starter] Query payment orders.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=2 (READ)
  • Returns : query payment orders

func (*Client) RefundUserPaymentOrder deprecated

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

RefundUserPaymentOrder refund payment order

[Not Supported Yet In Starter] [SERVICE COMMUNICATION ONLY] This API is used to refund order by paymentOrderNo from justice service.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=4 (UPDATE)

func (*Client) RefundUserPaymentOrderShort

func (a *Client) RefundUserPaymentOrderShort(params *RefundUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundUserPaymentOrderOK, error)

RefundUserPaymentOrderShort refund payment order

[Not Supported Yet In Starter] [SERVICE COMMUNICATION ONLY] This API is used to refund order by paymentOrderNo from justice service.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:USER:{userId}:PAYMENT", action=4 (UPDATE)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SimulatePaymentOrderNotification deprecated

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

SimulatePaymentOrderNotification simulate payment notification

[Not Supported Yet In Starter] [TEST FACILITY ONLY] Forbidden in live environment. Simulate payment notification on sandbox payment order, usually for test usage to simulate real currency payment notification.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)
  • Returns : notification process result

func (*Client) SimulatePaymentOrderNotificationShort

func (a *Client) SimulatePaymentOrderNotificationShort(params *SimulatePaymentOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*SimulatePaymentOrderNotificationOK, error)

SimulatePaymentOrderNotificationShort simulate payment notification

[Not Supported Yet In Starter] [TEST FACILITY ONLY] Forbidden in live environment. Simulate payment notification on sandbox payment order, usually for test usage to simulate real currency payment notification.

Other detail info:

  • Required permission : resource="ADMIN:NAMESPACE:{namespace}:PAYMENT", action=4 (UPDATE)
  • Returns : notification process result

type ClientService

type ClientService interface {
	QueryPaymentNotifications(params *QueryPaymentNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentNotificationsOK, error)
	QueryPaymentNotificationsShort(params *QueryPaymentNotificationsParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentNotificationsOK, error)
	QueryPaymentOrders(params *QueryPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentOrdersOK, error)
	QueryPaymentOrdersShort(params *QueryPaymentOrdersParams, authInfo runtime.ClientAuthInfoWriter) (*QueryPaymentOrdersOK, error)
	ListExtOrderNoByExtTxID(params *ListExtOrderNoByExtTxIDParams, authInfo runtime.ClientAuthInfoWriter) (*ListExtOrderNoByExtTxIDOK, error)
	ListExtOrderNoByExtTxIDShort(params *ListExtOrderNoByExtTxIDParams, authInfo runtime.ClientAuthInfoWriter) (*ListExtOrderNoByExtTxIDOK, error)
	GetPaymentOrder(params *GetPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderOK, *GetPaymentOrderNotFound, error)
	GetPaymentOrderShort(params *GetPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderOK, error)
	ChargePaymentOrder(params *ChargePaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*ChargePaymentOrderOK, *ChargePaymentOrderBadRequest, *ChargePaymentOrderNotFound, *ChargePaymentOrderConflict, error)
	ChargePaymentOrderShort(params *ChargePaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*ChargePaymentOrderOK, error)
	SimulatePaymentOrderNotification(params *SimulatePaymentOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*SimulatePaymentOrderNotificationOK, *SimulatePaymentOrderNotificationBadRequest, *SimulatePaymentOrderNotificationNotFound, error)
	SimulatePaymentOrderNotificationShort(params *SimulatePaymentOrderNotificationParams, authInfo runtime.ClientAuthInfoWriter) (*SimulatePaymentOrderNotificationOK, error)
	GetPaymentOrderChargeStatus(params *GetPaymentOrderChargeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderChargeStatusOK, *GetPaymentOrderChargeStatusNotFound, error)
	GetPaymentOrderChargeStatusShort(params *GetPaymentOrderChargeStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetPaymentOrderChargeStatusOK, error)
	CreateUserPaymentOrder(params *CreateUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserPaymentOrderCreated, *CreateUserPaymentOrderBadRequest, *CreateUserPaymentOrderForbidden, *CreateUserPaymentOrderNotFound, *CreateUserPaymentOrderConflict, *CreateUserPaymentOrderUnprocessableEntity, error)
	CreateUserPaymentOrderShort(params *CreateUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserPaymentOrderCreated, error)
	RefundUserPaymentOrder(params *RefundUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundUserPaymentOrderOK, *RefundUserPaymentOrderNotFound, *RefundUserPaymentOrderConflict, *RefundUserPaymentOrderUnprocessableEntity, error)
	RefundUserPaymentOrderShort(params *RefundUserPaymentOrderParams, authInfo runtime.ClientAuthInfoWriter) (*RefundUserPaymentOrderOK, 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}] by provider: [{provider}]</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

func (*CreateUserPaymentOrderBadRequest) ToJSONString

func (o *CreateUserPaymentOrderBadRequest) ToJSONString() string

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

func (*CreateUserPaymentOrderConflict) ToJSONString

func (o *CreateUserPaymentOrderConflict) ToJSONString() string

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

func (*CreateUserPaymentOrderCreated) ToJSONString

func (o *CreateUserPaymentOrderCreated) ToJSONString() string

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

func (*CreateUserPaymentOrderForbidden) ToJSONString

func (o *CreateUserPaymentOrderForbidden) ToJSONString() string

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

func (*CreateUserPaymentOrderNotFound) ToJSONString

func (o *CreateUserPaymentOrderNotFound) ToJSONString() string

type CreateUserPaymentOrderParams

type CreateUserPaymentOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PaymentOrderCreate
	/*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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the create user payment order params

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

func (o *CreateUserPaymentOrderParams) SetFlightId(flightId string)

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

func (*CreateUserPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user payment order params

func (*CreateUserPaymentOrderParams) SetHTTPClientTransport

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

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

func (*CreateUserPaymentOrderUnprocessableEntity) ToJSONString

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

func (*GetPaymentOrderChargeStatusNotFound) ToJSONString

func (o *GetPaymentOrderChargeStatusNotFound) ToJSONString() string

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

func (*GetPaymentOrderChargeStatusOK) ToJSONString

func (o *GetPaymentOrderChargeStatusOK) ToJSONString() string

type GetPaymentOrderChargeStatusParams

type GetPaymentOrderChargeStatusParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo 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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the get payment order charge status params

func (*GetPaymentOrderChargeStatusParams) SetContext

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

func (*GetPaymentOrderChargeStatusParams) SetFlightId

func (o *GetPaymentOrderChargeStatusParams) SetFlightId(flightId string)

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

func (*GetPaymentOrderChargeStatusParams) SetHTTPClient

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

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

func (*GetPaymentOrderChargeStatusParams) SetHTTPClientTransport

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

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

func (*GetPaymentOrderNotFound) ToJSONString

func (o *GetPaymentOrderNotFound) ToJSONString() string

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

func (*GetPaymentOrderOK) ToJSONString

func (o *GetPaymentOrderOK) ToJSONString() string

type GetPaymentOrderParams

type GetPaymentOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo 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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the get payment order params

func (*GetPaymentOrderParams) SetContext

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

SetContext adds the context to the get payment order params

func (*GetPaymentOrderParams) SetFlightId

func (o *GetPaymentOrderParams) SetFlightId(flightId string)

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

func (*GetPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment order params

func (*GetPaymentOrderParams) SetHTTPClientTransport

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

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

func (*ListExtOrderNoByExtTxIDOK) ToJSONString

func (o *ListExtOrderNoByExtTxIDOK) ToJSONString() string

type ListExtOrderNoByExtTxIDParams

type ListExtOrderNoByExtTxIDParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*ExtTxID*/
	ExtTxID 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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the list ext order no by ext tx id params

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

func (o *ListExtOrderNoByExtTxIDParams) SetFlightId(flightId string)

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

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

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

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

func (*QueryPaymentNotificationsOK) ToJSONString

func (o *QueryPaymentNotificationsOK) ToJSONString() string

type QueryPaymentNotificationsParams

type QueryPaymentNotificationsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*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
	/*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

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

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

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

SetAuthInfoWriter adds the authInfoWriter to the query payment notifications params

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

func (o *QueryPaymentNotificationsParams) SetFlightId(flightId string)

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

func (*QueryPaymentNotificationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query payment notifications params

func (*QueryPaymentNotificationsParams) SetHTTPClientTransport

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

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

func (*QueryPaymentOrdersOK) ToJSONString

func (o *QueryPaymentOrdersOK) ToJSONString() string

type QueryPaymentOrdersParams

type QueryPaymentOrdersParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace*/
	Namespace string
	/*Channel*/
	Channel *string
	/*ExtTxID*/
	ExtTxID *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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the query payment orders params

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

func (o *QueryPaymentOrdersParams) SetFlightId(flightId string)

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

func (*QueryPaymentOrdersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query payment orders params

func (*QueryPaymentOrdersParams) SetHTTPClientTransport

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

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

func (*RefundUserPaymentOrderConflict) ToJSONString

func (o *RefundUserPaymentOrderConflict) ToJSONString() string

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

func (*RefundUserPaymentOrderNotFound) ToJSONString

func (o *RefundUserPaymentOrderNotFound) ToJSONString() string

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

func (*RefundUserPaymentOrderOK) ToJSONString

func (o *RefundUserPaymentOrderOK) ToJSONString() string

type RefundUserPaymentOrderParams

type RefundUserPaymentOrderParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PaymentOrderRefund
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo 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
}

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

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

SetAuthInfoWriter adds the authInfoWriter to the refund user payment order params

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

func (o *RefundUserPaymentOrderParams) SetFlightId(flightId string)

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

func (*RefundUserPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refund user payment order params

func (*RefundUserPaymentOrderParams) SetHTTPClientTransport

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

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

func (*RefundUserPaymentOrderUnprocessableEntity) ToJSONString

type SimulatePaymentOrderNotificationBadRequest

type SimulatePaymentOrderNotificationBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

SimulatePaymentOrderNotificationBadRequest 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 NewSimulatePaymentOrderNotificationBadRequest

func NewSimulatePaymentOrderNotificationBadRequest() *SimulatePaymentOrderNotificationBadRequest

NewSimulatePaymentOrderNotificationBadRequest creates a SimulatePaymentOrderNotificationBadRequest with default headers values

func (*SimulatePaymentOrderNotificationBadRequest) Error

func (*SimulatePaymentOrderNotificationBadRequest) GetPayload

func (*SimulatePaymentOrderNotificationBadRequest) ToJSONString

type SimulatePaymentOrderNotificationNotFound

type SimulatePaymentOrderNotificationNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

SimulatePaymentOrderNotificationNotFound 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 NewSimulatePaymentOrderNotificationNotFound

func NewSimulatePaymentOrderNotificationNotFound() *SimulatePaymentOrderNotificationNotFound

NewSimulatePaymentOrderNotificationNotFound creates a SimulatePaymentOrderNotificationNotFound with default headers values

func (*SimulatePaymentOrderNotificationNotFound) Error

func (*SimulatePaymentOrderNotificationNotFound) GetPayload

func (*SimulatePaymentOrderNotificationNotFound) ToJSONString

type SimulatePaymentOrderNotificationOK

type SimulatePaymentOrderNotificationOK struct {
	Payload *platformclientmodels.NotificationProcessResult
}

SimulatePaymentOrderNotificationOK handles this case with default header values.

successful operation

func NewSimulatePaymentOrderNotificationOK

func NewSimulatePaymentOrderNotificationOK() *SimulatePaymentOrderNotificationOK

NewSimulatePaymentOrderNotificationOK creates a SimulatePaymentOrderNotificationOK with default headers values

func (*SimulatePaymentOrderNotificationOK) Error

func (*SimulatePaymentOrderNotificationOK) GetPayload

func (*SimulatePaymentOrderNotificationOK) ToJSONString

func (o *SimulatePaymentOrderNotificationOK) ToJSONString() string

type SimulatePaymentOrderNotificationParams

type SimulatePaymentOrderNotificationParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *platformclientmodels.PaymentOrderNotifySimulation
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo 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
}

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

func NewSimulatePaymentOrderNotificationParams

func NewSimulatePaymentOrderNotificationParams() *SimulatePaymentOrderNotificationParams

NewSimulatePaymentOrderNotificationParams creates a new SimulatePaymentOrderNotificationParams object with the default values initialized.

func NewSimulatePaymentOrderNotificationParamsWithContext

func NewSimulatePaymentOrderNotificationParamsWithContext(ctx context.Context) *SimulatePaymentOrderNotificationParams

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

func NewSimulatePaymentOrderNotificationParamsWithHTTPClient

func NewSimulatePaymentOrderNotificationParamsWithHTTPClient(client *http.Client) *SimulatePaymentOrderNotificationParams

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

func NewSimulatePaymentOrderNotificationParamsWithTimeout

func NewSimulatePaymentOrderNotificationParamsWithTimeout(timeout time.Duration) *SimulatePaymentOrderNotificationParams

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

func (*SimulatePaymentOrderNotificationParams) SetAuthInfoWriter

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

SetAuthInfoWriter adds the authInfoWriter to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetBody

SetBody adds the body to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetContext

SetContext adds the context to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetFlightId

func (o *SimulatePaymentOrderNotificationParams) SetFlightId(flightId string)

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

func (*SimulatePaymentOrderNotificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetHTTPClientTransport

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

SetHTTPClient adds the HTTPClient Transport to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetNamespace

func (o *SimulatePaymentOrderNotificationParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetPaymentOrderNo

func (o *SimulatePaymentOrderNotificationParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) SetTimeout

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

SetTimeout adds the timeout to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithBody

WithBody adds the body to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithContext

WithContext adds the context to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithNamespace

WithNamespace adds the namespace to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithPaymentOrderNo

WithPaymentOrderNo adds the paymentOrderNo to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WithTimeout

WithTimeout adds the timeout to the simulate payment order notification params

func (*SimulatePaymentOrderNotificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SimulatePaymentOrderNotificationReader

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

SimulatePaymentOrderNotificationReader is a Reader for the SimulatePaymentOrderNotification structure.

func (*SimulatePaymentOrderNotificationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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