payment_station

package
v0.0.0-...-f573b6e Latest Latest
Warning

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

Go to latest
Published: Jul 16, 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 Client

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

Client for payment station API

func (*Client) GetPaymentCustomization

func (a *Client) GetPaymentCustomization(params *GetPaymentCustomizationParams) (*GetPaymentCustomizationOK, error)

GetPaymentCustomization gets payment provider customization

Get payment provider customization, at current only Adyen provide customization.<br>Other detail info: <ul><li><i>Returns</i>: customization</li></ul>

func (*Client) GetPaymentPublicConfig

func (a *Client) GetPaymentPublicConfig(params *GetPaymentPublicConfigParams) (*GetPaymentPublicConfigOK, error)

GetPaymentPublicConfig gets payment provider public config

Get payment provider public config, at current only Strip provide public config.<br>Other detail info: <ul><li><i>Returns</i>: Public config</li></ul>

func (*Client) GetPaymentTaxValue

GetPaymentTaxValue gets tax result of a payment order

Check and get a payment order's should pay tax.<br>Other detail info: <ul><li><i>Returns</i>: tax result</li></ul>

func (*Client) Pay

func (a *Client) Pay(params *PayParams) (*PayOK, *PayBadRequest, *PayNotFound, *PayConflict, error)

Pay dos payment

Do payment(For now, this only support checkout.com).<br>Other detail info: <ul><li><i>Returns</i>: Payment process result</li></ul>

func (*Client) PublicCheckPaymentOrderPaidStatus

PublicCheckPaymentOrderPaidStatus checks payment order paid status

Check payment order paid status.<br>Other detail info: <ul><li><i>Returns</i>: Payment order paid result</li></ul>

func (*Client) PublicGetPaymentMethods

PublicGetPaymentMethods gets payment methods

Get payment methods.<br>Other detail info: <ul><li><i>Returns</i>: Payment method list</li></ul>

func (*Client) PublicGetPaymentURL

PublicGetPaymentURL gets payment url

Get payment url.<br>Other detail info: <ul><li><i>Returns</i>: Get payment link</li></ul>

func (*Client) PublicGetQRCode

func (a *Client) PublicGetQRCode(params *PublicGetQRCodeParams, writer io.Writer) (*PublicGetQRCodeOK, error)

PublicGetQRCode gets qrcode

Get qrcode.<br>Other detail info: <ul><li><i>Returns</i>: QRCode image stream</li></ul>

func (*Client) PublicGetUnpaidPaymentOrder

PublicGetUnpaidPaymentOrder gets payment order info

Get payment order info.<br>Other detail info: <ul><li><i>Returns</i>: Payment order details</li></ul>

func (*Client) PublicNormalizePaymentReturnURL

func (a *Client) PublicNormalizePaymentReturnURL(params *PublicNormalizePaymentReturnURLParams) (*PublicNormalizePaymentReturnURLNoContent, error)
PublicNormalizePaymentReturnURL normalizes payment return url

Normalize payment return url for payment provider<br>Payment response: <table><tr><td>Field</td><td>Type</td><td>Required</td><td>Description</td></tr><tr><td>orderNo</td><td>String</td><td>Yes</td><td>order no</td></tr><tr><td>paymentStatus</td><td>String</td><td>Yes</td><td><ul><li>DONE: The payment was successfully completed.</li><li>CANCELLED: The payment was cancelled by the shopper before completion, or the shopper returned to the merchant's site before completing the transaction.</li><li>PENDING: Inform the shopper that you've received their order, and are waiting for the payment to be completed.

When the shopper has completed the payment you will receive a successful AUTHORISATION.</li><li>RECEIVED: Inform the shopper that you've received their order, and are waiting for the payment to clear.</li><li>UNKNOWN: An error occurred during the payment processing.</li><li>FAILED: Shopper paid failed because of various reasons.</li></ul></td></tr><tr><td>reason</td><td>String</td><td>No</td><td>payment status reason</td></tr></table>Other detail info: <ul><li><i>xsolla</i>: parameters 'user_id', 'foreinginvoice', 'invoice_id' and 'status' will be automatically added to the link</li><li><i>adyen</i>: https://docs.adyen.com/developers/checkout/web-sdk</li></ul>

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new payment station API client.

type GetPaymentCustomizationOK

type GetPaymentCustomizationOK struct {
	Payload *platformclientmodels.Customization
}

GetPaymentCustomizationOK handles this case with default header values.

successful operation

func NewGetPaymentCustomizationOK

func NewGetPaymentCustomizationOK() *GetPaymentCustomizationOK

NewGetPaymentCustomizationOK creates a GetPaymentCustomizationOK with default headers values

func (*GetPaymentCustomizationOK) Error

func (o *GetPaymentCustomizationOK) Error() string

func (*GetPaymentCustomizationOK) GetPayload

type GetPaymentCustomizationParams

type GetPaymentCustomizationParams struct {

	/*Namespace*/
	Namespace string
	/*PaymentProvider*/
	PaymentProvider string
	/*Region*/
	Region string
	/*Sandbox*/
	Sandbox *bool

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

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

func NewGetPaymentCustomizationParams

func NewGetPaymentCustomizationParams() *GetPaymentCustomizationParams

NewGetPaymentCustomizationParams creates a new GetPaymentCustomizationParams object with the default values initialized.

func NewGetPaymentCustomizationParamsWithContext

func NewGetPaymentCustomizationParamsWithContext(ctx context.Context) *GetPaymentCustomizationParams

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

func NewGetPaymentCustomizationParamsWithHTTPClient

func NewGetPaymentCustomizationParamsWithHTTPClient(client *http.Client) *GetPaymentCustomizationParams

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

func NewGetPaymentCustomizationParamsWithTimeout

func NewGetPaymentCustomizationParamsWithTimeout(timeout time.Duration) *GetPaymentCustomizationParams

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

func (*GetPaymentCustomizationParams) SetContext

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

SetContext adds the context to the get payment customization params

func (*GetPaymentCustomizationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment customization params

func (*GetPaymentCustomizationParams) SetNamespace

func (o *GetPaymentCustomizationParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get payment customization params

func (*GetPaymentCustomizationParams) SetPaymentProvider

func (o *GetPaymentCustomizationParams) SetPaymentProvider(paymentProvider string)

SetPaymentProvider adds the paymentProvider to the get payment customization params

func (*GetPaymentCustomizationParams) SetRegion

func (o *GetPaymentCustomizationParams) SetRegion(region string)

SetRegion adds the region to the get payment customization params

func (*GetPaymentCustomizationParams) SetSandbox

func (o *GetPaymentCustomizationParams) SetSandbox(sandbox *bool)

SetSandbox adds the sandbox to the get payment customization params

func (*GetPaymentCustomizationParams) SetTimeout

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

SetTimeout adds the timeout to the get payment customization params

func (*GetPaymentCustomizationParams) WithContext

WithContext adds the context to the get payment customization params

func (*GetPaymentCustomizationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get payment customization params

func (*GetPaymentCustomizationParams) WithNamespace

WithNamespace adds the namespace to the get payment customization params

func (*GetPaymentCustomizationParams) WithPaymentProvider

func (o *GetPaymentCustomizationParams) WithPaymentProvider(paymentProvider string) *GetPaymentCustomizationParams

WithPaymentProvider adds the paymentProvider to the get payment customization params

func (*GetPaymentCustomizationParams) WithRegion

WithRegion adds the region to the get payment customization params

func (*GetPaymentCustomizationParams) WithSandbox

WithSandbox adds the sandbox to the get payment customization params

func (*GetPaymentCustomizationParams) WithTimeout

WithTimeout adds the timeout to the get payment customization params

func (*GetPaymentCustomizationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPaymentCustomizationReader

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

GetPaymentCustomizationReader is a Reader for the GetPaymentCustomization structure.

func (*GetPaymentCustomizationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPaymentPublicConfigOK

type GetPaymentPublicConfigOK struct {
	Payload map[string]interface{}
}

GetPaymentPublicConfigOK handles this case with default header values.

successful operation

func NewGetPaymentPublicConfigOK

func NewGetPaymentPublicConfigOK() *GetPaymentPublicConfigOK

NewGetPaymentPublicConfigOK creates a GetPaymentPublicConfigOK with default headers values

func (*GetPaymentPublicConfigOK) Error

func (o *GetPaymentPublicConfigOK) Error() string

func (*GetPaymentPublicConfigOK) GetPayload

func (o *GetPaymentPublicConfigOK) GetPayload() map[string]interface{}

type GetPaymentPublicConfigParams

type GetPaymentPublicConfigParams struct {

	/*Namespace*/
	Namespace string
	/*PaymentProvider*/
	PaymentProvider string
	/*Region*/
	Region string
	/*Sandbox*/
	Sandbox *bool

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

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

func NewGetPaymentPublicConfigParams

func NewGetPaymentPublicConfigParams() *GetPaymentPublicConfigParams

NewGetPaymentPublicConfigParams creates a new GetPaymentPublicConfigParams object with the default values initialized.

func NewGetPaymentPublicConfigParamsWithContext

func NewGetPaymentPublicConfigParamsWithContext(ctx context.Context) *GetPaymentPublicConfigParams

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

func NewGetPaymentPublicConfigParamsWithHTTPClient

func NewGetPaymentPublicConfigParamsWithHTTPClient(client *http.Client) *GetPaymentPublicConfigParams

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

func NewGetPaymentPublicConfigParamsWithTimeout

func NewGetPaymentPublicConfigParamsWithTimeout(timeout time.Duration) *GetPaymentPublicConfigParams

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

func (*GetPaymentPublicConfigParams) SetContext

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

SetContext adds the context to the get payment public config params

func (*GetPaymentPublicConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment public config params

func (*GetPaymentPublicConfigParams) SetNamespace

func (o *GetPaymentPublicConfigParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get payment public config params

func (*GetPaymentPublicConfigParams) SetPaymentProvider

func (o *GetPaymentPublicConfigParams) SetPaymentProvider(paymentProvider string)

SetPaymentProvider adds the paymentProvider to the get payment public config params

func (*GetPaymentPublicConfigParams) SetRegion

func (o *GetPaymentPublicConfigParams) SetRegion(region string)

SetRegion adds the region to the get payment public config params

func (*GetPaymentPublicConfigParams) SetSandbox

func (o *GetPaymentPublicConfigParams) SetSandbox(sandbox *bool)

SetSandbox adds the sandbox to the get payment public config params

func (*GetPaymentPublicConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get payment public config params

func (*GetPaymentPublicConfigParams) WithContext

WithContext adds the context to the get payment public config params

func (*GetPaymentPublicConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get payment public config params

func (*GetPaymentPublicConfigParams) WithNamespace

WithNamespace adds the namespace to the get payment public config params

func (*GetPaymentPublicConfigParams) WithPaymentProvider

func (o *GetPaymentPublicConfigParams) WithPaymentProvider(paymentProvider string) *GetPaymentPublicConfigParams

WithPaymentProvider adds the paymentProvider to the get payment public config params

func (*GetPaymentPublicConfigParams) WithRegion

WithRegion adds the region to the get payment public config params

func (*GetPaymentPublicConfigParams) WithSandbox

WithSandbox adds the sandbox to the get payment public config params

func (*GetPaymentPublicConfigParams) WithTimeout

WithTimeout adds the timeout to the get payment public config params

func (*GetPaymentPublicConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPaymentPublicConfigReader

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

GetPaymentPublicConfigReader is a Reader for the GetPaymentPublicConfig structure.

func (*GetPaymentPublicConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPaymentTaxValueBadRequest

type GetPaymentTaxValueBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

GetPaymentTaxValueBadRequest handles this case with default header values.

<table><tr><td>ErrorCode</td><td>ErrorMessage</td></tr><tr><td>33123</td><td>Invalid zipcode</td></tr></table>

func NewGetPaymentTaxValueBadRequest

func NewGetPaymentTaxValueBadRequest() *GetPaymentTaxValueBadRequest

NewGetPaymentTaxValueBadRequest creates a GetPaymentTaxValueBadRequest with default headers values

func (*GetPaymentTaxValueBadRequest) Error

func (*GetPaymentTaxValueBadRequest) GetPayload

type GetPaymentTaxValueNotFound

type GetPaymentTaxValueNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

GetPaymentTaxValueNotFound 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 NewGetPaymentTaxValueNotFound

func NewGetPaymentTaxValueNotFound() *GetPaymentTaxValueNotFound

NewGetPaymentTaxValueNotFound creates a GetPaymentTaxValueNotFound with default headers values

func (*GetPaymentTaxValueNotFound) Error

func (*GetPaymentTaxValueNotFound) GetPayload

type GetPaymentTaxValueOK

type GetPaymentTaxValueOK struct {
	Payload *platformclientmodels.TaxResult
}

GetPaymentTaxValueOK handles this case with default header values.

successful operation

func NewGetPaymentTaxValueOK

func NewGetPaymentTaxValueOK() *GetPaymentTaxValueOK

NewGetPaymentTaxValueOK creates a GetPaymentTaxValueOK with default headers values

func (*GetPaymentTaxValueOK) Error

func (o *GetPaymentTaxValueOK) Error() string

func (*GetPaymentTaxValueOK) GetPayload

type GetPaymentTaxValueParams

type GetPaymentTaxValueParams struct {

	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string
	/*PaymentProvider*/
	PaymentProvider string
	/*ZipCode*/
	ZipCode *string

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

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

func NewGetPaymentTaxValueParams

func NewGetPaymentTaxValueParams() *GetPaymentTaxValueParams

NewGetPaymentTaxValueParams creates a new GetPaymentTaxValueParams object with the default values initialized.

func NewGetPaymentTaxValueParamsWithContext

func NewGetPaymentTaxValueParamsWithContext(ctx context.Context) *GetPaymentTaxValueParams

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

func NewGetPaymentTaxValueParamsWithHTTPClient

func NewGetPaymentTaxValueParamsWithHTTPClient(client *http.Client) *GetPaymentTaxValueParams

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

func NewGetPaymentTaxValueParamsWithTimeout

func NewGetPaymentTaxValueParamsWithTimeout(timeout time.Duration) *GetPaymentTaxValueParams

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

func (*GetPaymentTaxValueParams) SetContext

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

SetContext adds the context to the get payment tax value params

func (*GetPaymentTaxValueParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get payment tax value params

func (*GetPaymentTaxValueParams) SetNamespace

func (o *GetPaymentTaxValueParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get payment tax value params

func (*GetPaymentTaxValueParams) SetPaymentOrderNo

func (o *GetPaymentTaxValueParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the get payment tax value params

func (*GetPaymentTaxValueParams) SetPaymentProvider

func (o *GetPaymentTaxValueParams) SetPaymentProvider(paymentProvider string)

SetPaymentProvider adds the paymentProvider to the get payment tax value params

func (*GetPaymentTaxValueParams) SetTimeout

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

SetTimeout adds the timeout to the get payment tax value params

func (*GetPaymentTaxValueParams) SetZipCode

func (o *GetPaymentTaxValueParams) SetZipCode(zipCode *string)

SetZipCode adds the zipCode to the get payment tax value params

func (*GetPaymentTaxValueParams) WithContext

WithContext adds the context to the get payment tax value params

func (*GetPaymentTaxValueParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get payment tax value params

func (*GetPaymentTaxValueParams) WithNamespace

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

WithNamespace adds the namespace to the get payment tax value params

func (*GetPaymentTaxValueParams) WithPaymentOrderNo

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

WithPaymentOrderNo adds the paymentOrderNo to the get payment tax value params

func (*GetPaymentTaxValueParams) WithPaymentProvider

func (o *GetPaymentTaxValueParams) WithPaymentProvider(paymentProvider string) *GetPaymentTaxValueParams

WithPaymentProvider adds the paymentProvider to the get payment tax value params

func (*GetPaymentTaxValueParams) WithTimeout

WithTimeout adds the timeout to the get payment tax value params

func (*GetPaymentTaxValueParams) WithZipCode

func (o *GetPaymentTaxValueParams) WithZipCode(zipCode *string) *GetPaymentTaxValueParams

WithZipCode adds the zipCode to the get payment tax value params

func (*GetPaymentTaxValueParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPaymentTaxValueReader

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

GetPaymentTaxValueReader is a Reader for the GetPaymentTaxValue structure.

func (*GetPaymentTaxValueReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PayBadRequest

type PayBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PayBadRequest 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 NewPayBadRequest

func NewPayBadRequest() *PayBadRequest

NewPayBadRequest creates a PayBadRequest with default headers values

func (*PayBadRequest) Error

func (o *PayBadRequest) Error() string

func (*PayBadRequest) GetPayload

type PayConflict

type PayConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PayConflict 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 NewPayConflict

func NewPayConflict() *PayConflict

NewPayConflict creates a PayConflict with default headers values

func (*PayConflict) Error

func (o *PayConflict) Error() string

func (*PayConflict) GetPayload

func (o *PayConflict) GetPayload() *platformclientmodels.ErrorEntity

type PayNotFound

type PayNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PayNotFound 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 NewPayNotFound

func NewPayNotFound() *PayNotFound

NewPayNotFound creates a PayNotFound with default headers values

func (*PayNotFound) Error

func (o *PayNotFound) Error() string

func (*PayNotFound) GetPayload

func (o *PayNotFound) GetPayload() *platformclientmodels.ErrorEntity

type PayOK

type PayOK struct {
	Payload *platformclientmodels.PaymentProcessResult
}

PayOK handles this case with default header values.

successful operation

func NewPayOK

func NewPayOK() *PayOK

NewPayOK creates a PayOK with default headers values

func (*PayOK) Error

func (o *PayOK) Error() string

func (*PayOK) GetPayload

type PayParams

type PayParams struct {

	/*Body*/
	Body *platformclientmodels.PaymentToken
	/*Namespace*/
	Namespace string
	/*PaymentOrderNo*/
	PaymentOrderNo string
	/*PaymentProvider
	  payment provider

	*/
	PaymentProvider *string
	/*ZipCode
	  zip code

	*/
	ZipCode *string

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

PayParams contains all the parameters to send to the API endpoint for the pay operation typically these are written to a http.Request

func NewPayParams

func NewPayParams() *PayParams

NewPayParams creates a new PayParams object with the default values initialized.

func NewPayParamsWithContext

func NewPayParamsWithContext(ctx context.Context) *PayParams

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

func NewPayParamsWithHTTPClient

func NewPayParamsWithHTTPClient(client *http.Client) *PayParams

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

func NewPayParamsWithTimeout

func NewPayParamsWithTimeout(timeout time.Duration) *PayParams

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

func (*PayParams) SetBody

func (o *PayParams) SetBody(body *platformclientmodels.PaymentToken)

SetBody adds the body to the pay params

func (*PayParams) SetContext

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

SetContext adds the context to the pay params

func (*PayParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pay params

func (*PayParams) SetNamespace

func (o *PayParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the pay params

func (*PayParams) SetPaymentOrderNo

func (o *PayParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the pay params

func (*PayParams) SetPaymentProvider

func (o *PayParams) SetPaymentProvider(paymentProvider *string)

SetPaymentProvider adds the paymentProvider to the pay params

func (*PayParams) SetTimeout

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

SetTimeout adds the timeout to the pay params

func (*PayParams) SetZipCode

func (o *PayParams) SetZipCode(zipCode *string)

SetZipCode adds the zipCode to the pay params

func (*PayParams) WithBody

WithBody adds the body to the pay params

func (*PayParams) WithContext

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

WithContext adds the context to the pay params

func (*PayParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pay params

func (*PayParams) WithNamespace

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

WithNamespace adds the namespace to the pay params

func (*PayParams) WithPaymentOrderNo

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

WithPaymentOrderNo adds the paymentOrderNo to the pay params

func (*PayParams) WithPaymentProvider

func (o *PayParams) WithPaymentProvider(paymentProvider *string) *PayParams

WithPaymentProvider adds the paymentProvider to the pay params

func (*PayParams) WithTimeout

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

WithTimeout adds the timeout to the pay params

func (*PayParams) WithZipCode

func (o *PayParams) WithZipCode(zipCode *string) *PayParams

WithZipCode adds the zipCode to the pay params

func (*PayParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PayReader

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

PayReader is a Reader for the Pay structure.

func (*PayReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicCheckPaymentOrderPaidStatusNotFound

type PublicCheckPaymentOrderPaidStatusNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicCheckPaymentOrderPaidStatusNotFound 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 NewPublicCheckPaymentOrderPaidStatusNotFound

func NewPublicCheckPaymentOrderPaidStatusNotFound() *PublicCheckPaymentOrderPaidStatusNotFound

NewPublicCheckPaymentOrderPaidStatusNotFound creates a PublicCheckPaymentOrderPaidStatusNotFound with default headers values

func (*PublicCheckPaymentOrderPaidStatusNotFound) Error

func (*PublicCheckPaymentOrderPaidStatusNotFound) GetPayload

type PublicCheckPaymentOrderPaidStatusOK

type PublicCheckPaymentOrderPaidStatusOK struct {
	Payload *platformclientmodels.PaymentOrderPaidResult
}

PublicCheckPaymentOrderPaidStatusOK handles this case with default header values.

successful operation

func NewPublicCheckPaymentOrderPaidStatusOK

func NewPublicCheckPaymentOrderPaidStatusOK() *PublicCheckPaymentOrderPaidStatusOK

NewPublicCheckPaymentOrderPaidStatusOK creates a PublicCheckPaymentOrderPaidStatusOK with default headers values

func (*PublicCheckPaymentOrderPaidStatusOK) Error

func (*PublicCheckPaymentOrderPaidStatusOK) GetPayload

type PublicCheckPaymentOrderPaidStatusParams

type PublicCheckPaymentOrderPaidStatusParams struct {

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

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

PublicCheckPaymentOrderPaidStatusParams contains all the parameters to send to the API endpoint for the public check payment order paid status operation typically these are written to a http.Request

func NewPublicCheckPaymentOrderPaidStatusParams

func NewPublicCheckPaymentOrderPaidStatusParams() *PublicCheckPaymentOrderPaidStatusParams

NewPublicCheckPaymentOrderPaidStatusParams creates a new PublicCheckPaymentOrderPaidStatusParams object with the default values initialized.

func NewPublicCheckPaymentOrderPaidStatusParamsWithContext

func NewPublicCheckPaymentOrderPaidStatusParamsWithContext(ctx context.Context) *PublicCheckPaymentOrderPaidStatusParams

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

func NewPublicCheckPaymentOrderPaidStatusParamsWithHTTPClient

func NewPublicCheckPaymentOrderPaidStatusParamsWithHTTPClient(client *http.Client) *PublicCheckPaymentOrderPaidStatusParams

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

func NewPublicCheckPaymentOrderPaidStatusParamsWithTimeout

func NewPublicCheckPaymentOrderPaidStatusParamsWithTimeout(timeout time.Duration) *PublicCheckPaymentOrderPaidStatusParams

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

func (*PublicCheckPaymentOrderPaidStatusParams) SetContext

SetContext adds the context to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) SetNamespace

func (o *PublicCheckPaymentOrderPaidStatusParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) SetPaymentOrderNo

func (o *PublicCheckPaymentOrderPaidStatusParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) SetTimeout

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

SetTimeout adds the timeout to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WithContext

WithContext adds the context to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WithNamespace

WithNamespace adds the namespace to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WithPaymentOrderNo

WithPaymentOrderNo adds the paymentOrderNo to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WithTimeout

WithTimeout adds the timeout to the public check payment order paid status params

func (*PublicCheckPaymentOrderPaidStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicCheckPaymentOrderPaidStatusReader

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

PublicCheckPaymentOrderPaidStatusReader is a Reader for the PublicCheckPaymentOrderPaidStatus structure.

func (*PublicCheckPaymentOrderPaidStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetPaymentMethodsNotFound

type PublicGetPaymentMethodsNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetPaymentMethodsNotFound 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 NewPublicGetPaymentMethodsNotFound

func NewPublicGetPaymentMethodsNotFound() *PublicGetPaymentMethodsNotFound

NewPublicGetPaymentMethodsNotFound creates a PublicGetPaymentMethodsNotFound with default headers values

func (*PublicGetPaymentMethodsNotFound) Error

func (*PublicGetPaymentMethodsNotFound) GetPayload

type PublicGetPaymentMethodsOK

type PublicGetPaymentMethodsOK struct {
	Payload []*platformclientmodels.PaymentMethod
}

PublicGetPaymentMethodsOK handles this case with default header values.

successful operation

func NewPublicGetPaymentMethodsOK

func NewPublicGetPaymentMethodsOK() *PublicGetPaymentMethodsOK

NewPublicGetPaymentMethodsOK creates a PublicGetPaymentMethodsOK with default headers values

func (*PublicGetPaymentMethodsOK) Error

func (o *PublicGetPaymentMethodsOK) Error() string

func (*PublicGetPaymentMethodsOK) GetPayload

type PublicGetPaymentMethodsParams

type PublicGetPaymentMethodsParams struct {

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

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

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

func NewPublicGetPaymentMethodsParams

func NewPublicGetPaymentMethodsParams() *PublicGetPaymentMethodsParams

NewPublicGetPaymentMethodsParams creates a new PublicGetPaymentMethodsParams object with the default values initialized.

func NewPublicGetPaymentMethodsParamsWithContext

func NewPublicGetPaymentMethodsParamsWithContext(ctx context.Context) *PublicGetPaymentMethodsParams

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

func NewPublicGetPaymentMethodsParamsWithHTTPClient

func NewPublicGetPaymentMethodsParamsWithHTTPClient(client *http.Client) *PublicGetPaymentMethodsParams

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

func NewPublicGetPaymentMethodsParamsWithTimeout

func NewPublicGetPaymentMethodsParamsWithTimeout(timeout time.Duration) *PublicGetPaymentMethodsParams

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

func (*PublicGetPaymentMethodsParams) SetContext

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

SetContext adds the context to the public get payment methods params

func (*PublicGetPaymentMethodsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get payment methods params

func (*PublicGetPaymentMethodsParams) SetNamespace

func (o *PublicGetPaymentMethodsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get payment methods params

func (*PublicGetPaymentMethodsParams) SetPaymentOrderNo

func (o *PublicGetPaymentMethodsParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the public get payment methods params

func (*PublicGetPaymentMethodsParams) SetTimeout

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

SetTimeout adds the timeout to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WithContext

WithContext adds the context to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WithNamespace

WithNamespace adds the namespace to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WithPaymentOrderNo

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

WithPaymentOrderNo adds the paymentOrderNo to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WithTimeout

WithTimeout adds the timeout to the public get payment methods params

func (*PublicGetPaymentMethodsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetPaymentMethodsReader

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

PublicGetPaymentMethodsReader is a Reader for the PublicGetPaymentMethods structure.

func (*PublicGetPaymentMethodsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetPaymentURLBadRequest

type PublicGetPaymentURLBadRequest struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetPaymentURLBadRequest handles this case with default header values.

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

func NewPublicGetPaymentURLBadRequest

func NewPublicGetPaymentURLBadRequest() *PublicGetPaymentURLBadRequest

NewPublicGetPaymentURLBadRequest creates a PublicGetPaymentURLBadRequest with default headers values

func (*PublicGetPaymentURLBadRequest) Error

func (*PublicGetPaymentURLBadRequest) GetPayload

type PublicGetPaymentURLForbidden

type PublicGetPaymentURLForbidden struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetPaymentURLForbidden 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 NewPublicGetPaymentURLForbidden

func NewPublicGetPaymentURLForbidden() *PublicGetPaymentURLForbidden

NewPublicGetPaymentURLForbidden creates a PublicGetPaymentURLForbidden with default headers values

func (*PublicGetPaymentURLForbidden) Error

func (*PublicGetPaymentURLForbidden) GetPayload

type PublicGetPaymentURLNotFound

type PublicGetPaymentURLNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetPaymentURLNotFound 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><tr><td>20008</td><td>user [{userId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicGetPaymentURLNotFound

func NewPublicGetPaymentURLNotFound() *PublicGetPaymentURLNotFound

NewPublicGetPaymentURLNotFound creates a PublicGetPaymentURLNotFound with default headers values

func (*PublicGetPaymentURLNotFound) Error

func (*PublicGetPaymentURLNotFound) GetPayload

type PublicGetPaymentURLOK

type PublicGetPaymentURLOK struct {
	Payload *platformclientmodels.PaymentURL
}

PublicGetPaymentURLOK handles this case with default header values.

successful operation

func NewPublicGetPaymentURLOK

func NewPublicGetPaymentURLOK() *PublicGetPaymentURLOK

NewPublicGetPaymentURLOK creates a PublicGetPaymentURLOK with default headers values

func (*PublicGetPaymentURLOK) Error

func (o *PublicGetPaymentURLOK) Error() string

func (*PublicGetPaymentURLOK) GetPayload

type PublicGetPaymentURLParams

type PublicGetPaymentURLParams struct {

	/*Body*/
	Body *platformclientmodels.PaymentURLCreate
	/*Namespace*/
	Namespace string

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

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

func NewPublicGetPaymentURLParams

func NewPublicGetPaymentURLParams() *PublicGetPaymentURLParams

NewPublicGetPaymentURLParams creates a new PublicGetPaymentURLParams object with the default values initialized.

func NewPublicGetPaymentURLParamsWithContext

func NewPublicGetPaymentURLParamsWithContext(ctx context.Context) *PublicGetPaymentURLParams

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

func NewPublicGetPaymentURLParamsWithHTTPClient

func NewPublicGetPaymentURLParamsWithHTTPClient(client *http.Client) *PublicGetPaymentURLParams

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

func NewPublicGetPaymentURLParamsWithTimeout

func NewPublicGetPaymentURLParamsWithTimeout(timeout time.Duration) *PublicGetPaymentURLParams

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

func (*PublicGetPaymentURLParams) SetBody

SetBody adds the body to the public get payment Url params

func (*PublicGetPaymentURLParams) SetContext

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

SetContext adds the context to the public get payment Url params

func (*PublicGetPaymentURLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get payment Url params

func (*PublicGetPaymentURLParams) SetNamespace

func (o *PublicGetPaymentURLParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get payment Url params

func (*PublicGetPaymentURLParams) SetTimeout

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

SetTimeout adds the timeout to the public get payment Url params

func (*PublicGetPaymentURLParams) WithBody

WithBody adds the body to the public get payment Url params

func (*PublicGetPaymentURLParams) WithContext

WithContext adds the context to the public get payment Url params

func (*PublicGetPaymentURLParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get payment Url params

func (*PublicGetPaymentURLParams) WithNamespace

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

WithNamespace adds the namespace to the public get payment Url params

func (*PublicGetPaymentURLParams) WithTimeout

WithTimeout adds the timeout to the public get payment Url params

func (*PublicGetPaymentURLParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetPaymentURLReader

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

PublicGetPaymentURLReader is a Reader for the PublicGetPaymentURL structure.

func (*PublicGetPaymentURLReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetQRCodeOK

type PublicGetQRCodeOK struct {
	Payload io.Writer
}

PublicGetQRCodeOK handles this case with default header values.

successful operation

func NewPublicGetQRCodeOK

func NewPublicGetQRCodeOK(writer io.Writer) *PublicGetQRCodeOK

NewPublicGetQRCodeOK creates a PublicGetQRCodeOK with default headers values

func (*PublicGetQRCodeOK) Error

func (o *PublicGetQRCodeOK) Error() string

func (*PublicGetQRCodeOK) GetPayload

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

type PublicGetQRCodeParams

type PublicGetQRCodeParams struct {

	/*Code*/
	Code string
	/*Namespace*/
	Namespace string

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

PublicGetQRCodeParams contains all the parameters to send to the API endpoint for the public get q r code operation typically these are written to a http.Request

func NewPublicGetQRCodeParams

func NewPublicGetQRCodeParams() *PublicGetQRCodeParams

NewPublicGetQRCodeParams creates a new PublicGetQRCodeParams object with the default values initialized.

func NewPublicGetQRCodeParamsWithContext

func NewPublicGetQRCodeParamsWithContext(ctx context.Context) *PublicGetQRCodeParams

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

func NewPublicGetQRCodeParamsWithHTTPClient

func NewPublicGetQRCodeParamsWithHTTPClient(client *http.Client) *PublicGetQRCodeParams

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

func NewPublicGetQRCodeParamsWithTimeout

func NewPublicGetQRCodeParamsWithTimeout(timeout time.Duration) *PublicGetQRCodeParams

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

func (*PublicGetQRCodeParams) SetCode

func (o *PublicGetQRCodeParams) SetCode(code string)

SetCode adds the code to the public get q r code params

func (*PublicGetQRCodeParams) SetContext

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

SetContext adds the context to the public get q r code params

func (*PublicGetQRCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get q r code params

func (*PublicGetQRCodeParams) SetNamespace

func (o *PublicGetQRCodeParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get q r code params

func (*PublicGetQRCodeParams) SetTimeout

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

SetTimeout adds the timeout to the public get q r code params

func (*PublicGetQRCodeParams) WithCode

WithCode adds the code to the public get q r code params

func (*PublicGetQRCodeParams) WithContext

WithContext adds the context to the public get q r code params

func (*PublicGetQRCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the public get q r code params

func (*PublicGetQRCodeParams) WithNamespace

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

WithNamespace adds the namespace to the public get q r code params

func (*PublicGetQRCodeParams) WithTimeout

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

WithTimeout adds the timeout to the public get q r code params

func (*PublicGetQRCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PublicGetQRCodeReader

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

PublicGetQRCodeReader is a Reader for the PublicGetQRCode structure.

func (*PublicGetQRCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicGetUnpaidPaymentOrderConflict

type PublicGetUnpaidPaymentOrderConflict struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetUnpaidPaymentOrderConflict 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 NewPublicGetUnpaidPaymentOrderConflict

func NewPublicGetUnpaidPaymentOrderConflict() *PublicGetUnpaidPaymentOrderConflict

NewPublicGetUnpaidPaymentOrderConflict creates a PublicGetUnpaidPaymentOrderConflict with default headers values

func (*PublicGetUnpaidPaymentOrderConflict) Error

func (*PublicGetUnpaidPaymentOrderConflict) GetPayload

type PublicGetUnpaidPaymentOrderNotFound

type PublicGetUnpaidPaymentOrderNotFound struct {
	Payload *platformclientmodels.ErrorEntity
}

PublicGetUnpaidPaymentOrderNotFound 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><tr><td>20008</td><td>user [{userId}] does not exist in namespace [{namespace}]</td></tr></table>

func NewPublicGetUnpaidPaymentOrderNotFound

func NewPublicGetUnpaidPaymentOrderNotFound() *PublicGetUnpaidPaymentOrderNotFound

NewPublicGetUnpaidPaymentOrderNotFound creates a PublicGetUnpaidPaymentOrderNotFound with default headers values

func (*PublicGetUnpaidPaymentOrderNotFound) Error

func (*PublicGetUnpaidPaymentOrderNotFound) GetPayload

type PublicGetUnpaidPaymentOrderOK

type PublicGetUnpaidPaymentOrderOK struct {
	Payload *platformclientmodels.PaymentOrderDetails
}

PublicGetUnpaidPaymentOrderOK handles this case with default header values.

successful operation

func NewPublicGetUnpaidPaymentOrderOK

func NewPublicGetUnpaidPaymentOrderOK() *PublicGetUnpaidPaymentOrderOK

NewPublicGetUnpaidPaymentOrderOK creates a PublicGetUnpaidPaymentOrderOK with default headers values

func (*PublicGetUnpaidPaymentOrderOK) Error

func (*PublicGetUnpaidPaymentOrderOK) GetPayload

type PublicGetUnpaidPaymentOrderParams

type PublicGetUnpaidPaymentOrderParams struct {

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

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

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

func NewPublicGetUnpaidPaymentOrderParams

func NewPublicGetUnpaidPaymentOrderParams() *PublicGetUnpaidPaymentOrderParams

NewPublicGetUnpaidPaymentOrderParams creates a new PublicGetUnpaidPaymentOrderParams object with the default values initialized.

func NewPublicGetUnpaidPaymentOrderParamsWithContext

func NewPublicGetUnpaidPaymentOrderParamsWithContext(ctx context.Context) *PublicGetUnpaidPaymentOrderParams

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

func NewPublicGetUnpaidPaymentOrderParamsWithHTTPClient

func NewPublicGetUnpaidPaymentOrderParamsWithHTTPClient(client *http.Client) *PublicGetUnpaidPaymentOrderParams

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

func NewPublicGetUnpaidPaymentOrderParamsWithTimeout

func NewPublicGetUnpaidPaymentOrderParamsWithTimeout(timeout time.Duration) *PublicGetUnpaidPaymentOrderParams

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

func (*PublicGetUnpaidPaymentOrderParams) SetContext

SetContext adds the context to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) SetNamespace

func (o *PublicGetUnpaidPaymentOrderParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) SetPaymentOrderNo

func (o *PublicGetUnpaidPaymentOrderParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) SetTimeout

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

SetTimeout adds the timeout to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WithContext

WithContext adds the context to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WithNamespace

WithNamespace adds the namespace to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WithPaymentOrderNo

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

WithPaymentOrderNo adds the paymentOrderNo to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WithTimeout

WithTimeout adds the timeout to the public get unpaid payment order params

func (*PublicGetUnpaidPaymentOrderParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicGetUnpaidPaymentOrderReader

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

PublicGetUnpaidPaymentOrderReader is a Reader for the PublicGetUnpaidPaymentOrder structure.

func (*PublicGetUnpaidPaymentOrderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PublicNormalizePaymentReturnURLNoContent

type PublicNormalizePaymentReturnURLNoContent struct {
}

PublicNormalizePaymentReturnURLNoContent handles this case with default header values.

successful operation

func NewPublicNormalizePaymentReturnURLNoContent

func NewPublicNormalizePaymentReturnURLNoContent() *PublicNormalizePaymentReturnURLNoContent

NewPublicNormalizePaymentReturnURLNoContent creates a PublicNormalizePaymentReturnURLNoContent with default headers values

func (*PublicNormalizePaymentReturnURLNoContent) Error

type PublicNormalizePaymentReturnURLParams

type PublicNormalizePaymentReturnURLParams struct {

	/*PayerID
	  PayPal payer id

	*/
	PayerID *string
	/*Foreinginvoice*/
	Foreinginvoice *string
	/*InvoiceID*/
	InvoiceID *string
	/*Namespace*/
	Namespace string
	/*OrderNo
	  Platform order no

	*/
	OrderNo string
	/*Payload*/
	Payload *string
	/*PaymentOrderNo
	  Platform payment order no

	*/
	PaymentOrderNo string
	/*PaymentProvider
	  Platform payment provider

	*/
	PaymentProvider string
	/*ResultCode*/
	ResultCode *string
	/*ReturnURL*/
	ReturnURL string
	/*Status*/
	Status *string
	/*Token
	  PayPal token

	*/
	Token *string
	/*Type*/
	Type *string
	/*UserID*/
	UserID *string

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

PublicNormalizePaymentReturnURLParams contains all the parameters to send to the API endpoint for the public normalize payment return Url operation typically these are written to a http.Request

func NewPublicNormalizePaymentReturnURLParams

func NewPublicNormalizePaymentReturnURLParams() *PublicNormalizePaymentReturnURLParams

NewPublicNormalizePaymentReturnURLParams creates a new PublicNormalizePaymentReturnURLParams object with the default values initialized.

func NewPublicNormalizePaymentReturnURLParamsWithContext

func NewPublicNormalizePaymentReturnURLParamsWithContext(ctx context.Context) *PublicNormalizePaymentReturnURLParams

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

func NewPublicNormalizePaymentReturnURLParamsWithHTTPClient

func NewPublicNormalizePaymentReturnURLParamsWithHTTPClient(client *http.Client) *PublicNormalizePaymentReturnURLParams

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

func NewPublicNormalizePaymentReturnURLParamsWithTimeout

func NewPublicNormalizePaymentReturnURLParamsWithTimeout(timeout time.Duration) *PublicNormalizePaymentReturnURLParams

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

func (*PublicNormalizePaymentReturnURLParams) SetContext

SetContext adds the context to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetForeinginvoice

func (o *PublicNormalizePaymentReturnURLParams) SetForeinginvoice(foreinginvoice *string)

SetForeinginvoice adds the foreinginvoice to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetInvoiceID

func (o *PublicNormalizePaymentReturnURLParams) SetInvoiceID(invoiceID *string)

SetInvoiceID adds the invoiceId to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetNamespace

func (o *PublicNormalizePaymentReturnURLParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetOrderNo

func (o *PublicNormalizePaymentReturnURLParams) SetOrderNo(orderNo string)

SetOrderNo adds the orderNo to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetPayerID

func (o *PublicNormalizePaymentReturnURLParams) SetPayerID(payerID *string)

SetPayerID adds the payerId to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetPayload

func (o *PublicNormalizePaymentReturnURLParams) SetPayload(payload *string)

SetPayload adds the payload to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetPaymentOrderNo

func (o *PublicNormalizePaymentReturnURLParams) SetPaymentOrderNo(paymentOrderNo string)

SetPaymentOrderNo adds the paymentOrderNo to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetPaymentProvider

func (o *PublicNormalizePaymentReturnURLParams) SetPaymentProvider(paymentProvider string)

SetPaymentProvider adds the paymentProvider to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetResultCode

func (o *PublicNormalizePaymentReturnURLParams) SetResultCode(resultCode *string)

SetResultCode adds the resultCode to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetReturnURL

func (o *PublicNormalizePaymentReturnURLParams) SetReturnURL(returnURL string)

SetReturnURL adds the returnUrl to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetStatus

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

SetStatus adds the status to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetTimeout

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

SetTimeout adds the timeout to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetToken

func (o *PublicNormalizePaymentReturnURLParams) SetToken(token *string)

SetToken adds the token to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetType

func (o *PublicNormalizePaymentReturnURLParams) SetType(typeVar *string)

SetType adds the type to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) SetUserID

func (o *PublicNormalizePaymentReturnURLParams) SetUserID(userID *string)

SetUserID adds the userId to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithContext

WithContext adds the context to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithForeinginvoice

WithForeinginvoice adds the foreinginvoice to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithInvoiceID

WithInvoiceID adds the invoiceID to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithNamespace

WithNamespace adds the namespace to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithOrderNo

WithOrderNo adds the orderNo to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithPayerID

WithPayerID adds the payerID to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithPayload

WithPayload adds the payload to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithPaymentOrderNo

WithPaymentOrderNo adds the paymentOrderNo to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithPaymentProvider

WithPaymentProvider adds the paymentProvider to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithResultCode

WithResultCode adds the resultCode to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithReturnURL

WithReturnURL adds the returnURL to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithStatus

WithStatus adds the status to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithTimeout

WithTimeout adds the timeout to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithToken

WithToken adds the token to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithType

WithType adds the typeVar to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WithUserID

WithUserID adds the userID to the public normalize payment return Url params

func (*PublicNormalizePaymentReturnURLParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PublicNormalizePaymentReturnURLReader

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

PublicNormalizePaymentReturnURLReader is a Reader for the PublicNormalizePaymentReturnURL structure.

func (*PublicNormalizePaymentReturnURLReader) ReadResponse

func (o *PublicNormalizePaymentReturnURLReader) 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