payment_gateway

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildComboFormDescriptorBadRequest

type BuildComboFormDescriptorBadRequest struct {
	HttpResponse runtime.ClientResponse
}

BuildComboFormDescriptorBadRequest describes a response with status code 400, with default header values.

Invalid data for Account or PaymentMethod

func NewBuildComboFormDescriptorBadRequest

func NewBuildComboFormDescriptorBadRequest() *BuildComboFormDescriptorBadRequest

NewBuildComboFormDescriptorBadRequest creates a BuildComboFormDescriptorBadRequest with default headers values

func (*BuildComboFormDescriptorBadRequest) Code

Code gets the status code for the build combo form descriptor bad request response

func (*BuildComboFormDescriptorBadRequest) Error

func (*BuildComboFormDescriptorBadRequest) IsClientError

func (o *BuildComboFormDescriptorBadRequest) IsClientError() bool

IsClientError returns true when this build combo form descriptor bad request response has a 4xx status code

func (*BuildComboFormDescriptorBadRequest) IsCode

IsCode returns true when this build combo form descriptor bad request response a status code equal to that given

func (*BuildComboFormDescriptorBadRequest) IsRedirect

func (o *BuildComboFormDescriptorBadRequest) IsRedirect() bool

IsRedirect returns true when this build combo form descriptor bad request response has a 3xx status code

func (*BuildComboFormDescriptorBadRequest) IsServerError

func (o *BuildComboFormDescriptorBadRequest) IsServerError() bool

IsServerError returns true when this build combo form descriptor bad request response has a 5xx status code

func (*BuildComboFormDescriptorBadRequest) IsSuccess

IsSuccess returns true when this build combo form descriptor bad request response has a 2xx status code

func (*BuildComboFormDescriptorBadRequest) String

type BuildComboFormDescriptorOK

type BuildComboFormDescriptorOK struct {
	Payload      *kbmodel.HostedPaymentPageFormDescriptor
	HttpResponse runtime.ClientResponse
}

BuildComboFormDescriptorOK describes a response with status code 200, with default header values.

successful operation

func NewBuildComboFormDescriptorOK

func NewBuildComboFormDescriptorOK() *BuildComboFormDescriptorOK

NewBuildComboFormDescriptorOK creates a BuildComboFormDescriptorOK with default headers values

func (*BuildComboFormDescriptorOK) Code

func (o *BuildComboFormDescriptorOK) Code() int

Code gets the status code for the build combo form descriptor o k response

func (*BuildComboFormDescriptorOK) Error

func (*BuildComboFormDescriptorOK) GetPayload

func (*BuildComboFormDescriptorOK) IsClientError

func (o *BuildComboFormDescriptorOK) IsClientError() bool

IsClientError returns true when this build combo form descriptor o k response has a 4xx status code

func (*BuildComboFormDescriptorOK) IsCode

func (o *BuildComboFormDescriptorOK) IsCode(code int) bool

IsCode returns true when this build combo form descriptor o k response a status code equal to that given

func (*BuildComboFormDescriptorOK) IsRedirect

func (o *BuildComboFormDescriptorOK) IsRedirect() bool

IsRedirect returns true when this build combo form descriptor o k response has a 3xx status code

func (*BuildComboFormDescriptorOK) IsServerError

func (o *BuildComboFormDescriptorOK) IsServerError() bool

IsServerError returns true when this build combo form descriptor o k response has a 5xx status code

func (*BuildComboFormDescriptorOK) IsSuccess

func (o *BuildComboFormDescriptorOK) IsSuccess() bool

IsSuccess returns true when this build combo form descriptor o k response has a 2xx status code

func (*BuildComboFormDescriptorOK) String

func (o *BuildComboFormDescriptorOK) String() string

type BuildComboFormDescriptorParams

type BuildComboFormDescriptorParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body *kbmodel.ComboHostedPaymentPage

	// ControlPluginName.
	ControlPluginName []string

	// PluginProperty.
	PluginProperty []string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

BuildComboFormDescriptorParams contains all the parameters to send to the API endpoint

for the build combo form descriptor operation.

Typically these are written to a http.Request.

func NewBuildComboFormDescriptorParams

func NewBuildComboFormDescriptorParams() *BuildComboFormDescriptorParams

NewBuildComboFormDescriptorParams creates a new BuildComboFormDescriptorParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBuildComboFormDescriptorParamsWithContext

func NewBuildComboFormDescriptorParamsWithContext(ctx context.Context) *BuildComboFormDescriptorParams

NewBuildComboFormDescriptorParamsWithContext creates a new BuildComboFormDescriptorParams object with the ability to set a context for a request.

func NewBuildComboFormDescriptorParamsWithHTTPClient

func NewBuildComboFormDescriptorParamsWithHTTPClient(client *http.Client) *BuildComboFormDescriptorParams

NewBuildComboFormDescriptorParamsWithHTTPClient creates a new BuildComboFormDescriptorParams object with the ability to set a custom HTTPClient for a request.

func NewBuildComboFormDescriptorParamsWithTimeout

func NewBuildComboFormDescriptorParamsWithTimeout(timeout time.Duration) *BuildComboFormDescriptorParams

NewBuildComboFormDescriptorParamsWithTimeout creates a new BuildComboFormDescriptorParams object with the ability to set a timeout on a request.

func (*BuildComboFormDescriptorParams) SetBody

SetBody adds the body to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetContext

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

SetContext adds the context to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetControlPluginName

func (o *BuildComboFormDescriptorParams) SetControlPluginName(controlPluginName []string)

SetControlPluginName adds the controlPluginName to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetDefaults

func (o *BuildComboFormDescriptorParams) SetDefaults()

SetDefaults hydrates default values in the build combo form descriptor params (not the query body).

All values with no default are reset to their zero value.

func (*BuildComboFormDescriptorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetPluginProperty

func (o *BuildComboFormDescriptorParams) SetPluginProperty(pluginProperty []string)

SetPluginProperty adds the pluginProperty to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetTimeout

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

SetTimeout adds the timeout to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetXKillbillComment

func (o *BuildComboFormDescriptorParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetXKillbillCreatedBy

func (o *BuildComboFormDescriptorParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) SetXKillbillReason

func (o *BuildComboFormDescriptorParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithBody

WithBody adds the body to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithContext

WithContext adds the context to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithControlPluginName

func (o *BuildComboFormDescriptorParams) WithControlPluginName(controlPluginName []string) *BuildComboFormDescriptorParams

WithControlPluginName adds the controlPluginName to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithDefaults

WithDefaults hydrates default values in the build combo form descriptor params (not the query body).

All values with no default are reset to their zero value.

func (*BuildComboFormDescriptorParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithPluginProperty

func (o *BuildComboFormDescriptorParams) WithPluginProperty(pluginProperty []string) *BuildComboFormDescriptorParams

WithPluginProperty adds the pluginProperty to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithTimeout

WithTimeout adds the timeout to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithXKillbillComment

func (o *BuildComboFormDescriptorParams) WithXKillbillComment(xKillbillComment *string) *BuildComboFormDescriptorParams

WithXKillbillComment adds the xKillbillComment to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithXKillbillCreatedBy

func (o *BuildComboFormDescriptorParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *BuildComboFormDescriptorParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WithXKillbillReason

func (o *BuildComboFormDescriptorParams) WithXKillbillReason(xKillbillReason *string) *BuildComboFormDescriptorParams

WithXKillbillReason adds the xKillbillReason to the build combo form descriptor params

func (*BuildComboFormDescriptorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BuildComboFormDescriptorReader

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

BuildComboFormDescriptorReader is a Reader for the BuildComboFormDescriptor structure.

func (*BuildComboFormDescriptorReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BuildFormDescriptorNotFound

type BuildFormDescriptorNotFound struct {
	HttpResponse runtime.ClientResponse
}

BuildFormDescriptorNotFound describes a response with status code 404, with default header values.

Account not found

func NewBuildFormDescriptorNotFound

func NewBuildFormDescriptorNotFound() *BuildFormDescriptorNotFound

NewBuildFormDescriptorNotFound creates a BuildFormDescriptorNotFound with default headers values

func (*BuildFormDescriptorNotFound) Code

func (o *BuildFormDescriptorNotFound) Code() int

Code gets the status code for the build form descriptor not found response

func (*BuildFormDescriptorNotFound) Error

func (*BuildFormDescriptorNotFound) IsClientError

func (o *BuildFormDescriptorNotFound) IsClientError() bool

IsClientError returns true when this build form descriptor not found response has a 4xx status code

func (*BuildFormDescriptorNotFound) IsCode

func (o *BuildFormDescriptorNotFound) IsCode(code int) bool

IsCode returns true when this build form descriptor not found response a status code equal to that given

func (*BuildFormDescriptorNotFound) IsRedirect

func (o *BuildFormDescriptorNotFound) IsRedirect() bool

IsRedirect returns true when this build form descriptor not found response has a 3xx status code

func (*BuildFormDescriptorNotFound) IsServerError

func (o *BuildFormDescriptorNotFound) IsServerError() bool

IsServerError returns true when this build form descriptor not found response has a 5xx status code

func (*BuildFormDescriptorNotFound) IsSuccess

func (o *BuildFormDescriptorNotFound) IsSuccess() bool

IsSuccess returns true when this build form descriptor not found response has a 2xx status code

func (*BuildFormDescriptorNotFound) String

func (o *BuildFormDescriptorNotFound) String() string

type BuildFormDescriptorOK

type BuildFormDescriptorOK struct {
	Payload      *kbmodel.HostedPaymentPageFormDescriptor
	HttpResponse runtime.ClientResponse
}

BuildFormDescriptorOK describes a response with status code 200, with default header values.

successful operation

func NewBuildFormDescriptorOK

func NewBuildFormDescriptorOK() *BuildFormDescriptorOK

NewBuildFormDescriptorOK creates a BuildFormDescriptorOK with default headers values

func (*BuildFormDescriptorOK) Code

func (o *BuildFormDescriptorOK) Code() int

Code gets the status code for the build form descriptor o k response

func (*BuildFormDescriptorOK) Error

func (o *BuildFormDescriptorOK) Error() string

func (*BuildFormDescriptorOK) GetPayload

func (*BuildFormDescriptorOK) IsClientError

func (o *BuildFormDescriptorOK) IsClientError() bool

IsClientError returns true when this build form descriptor o k response has a 4xx status code

func (*BuildFormDescriptorOK) IsCode

func (o *BuildFormDescriptorOK) IsCode(code int) bool

IsCode returns true when this build form descriptor o k response a status code equal to that given

func (*BuildFormDescriptorOK) IsRedirect

func (o *BuildFormDescriptorOK) IsRedirect() bool

IsRedirect returns true when this build form descriptor o k response has a 3xx status code

func (*BuildFormDescriptorOK) IsServerError

func (o *BuildFormDescriptorOK) IsServerError() bool

IsServerError returns true when this build form descriptor o k response has a 5xx status code

func (*BuildFormDescriptorOK) IsSuccess

func (o *BuildFormDescriptorOK) IsSuccess() bool

IsSuccess returns true when this build form descriptor o k response has a 2xx status code

func (*BuildFormDescriptorOK) String

func (o *BuildFormDescriptorOK) String() string

type BuildFormDescriptorParams

type BuildFormDescriptorParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// AccountID.
	//
	// Format: uuid
	AccountID strfmt.UUID

	// Body.
	Body *kbmodel.HostedPaymentPageFields

	// ControlPluginName.
	ControlPluginName []string

	// PaymentMethodID.
	//
	// Format: uuid
	PaymentMethodID *strfmt.UUID

	// PluginProperty.
	PluginProperty []string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

BuildFormDescriptorParams contains all the parameters to send to the API endpoint

for the build form descriptor operation.

Typically these are written to a http.Request.

func NewBuildFormDescriptorParams

func NewBuildFormDescriptorParams() *BuildFormDescriptorParams

NewBuildFormDescriptorParams creates a new BuildFormDescriptorParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewBuildFormDescriptorParamsWithContext

func NewBuildFormDescriptorParamsWithContext(ctx context.Context) *BuildFormDescriptorParams

NewBuildFormDescriptorParamsWithContext creates a new BuildFormDescriptorParams object with the ability to set a context for a request.

func NewBuildFormDescriptorParamsWithHTTPClient

func NewBuildFormDescriptorParamsWithHTTPClient(client *http.Client) *BuildFormDescriptorParams

NewBuildFormDescriptorParamsWithHTTPClient creates a new BuildFormDescriptorParams object with the ability to set a custom HTTPClient for a request.

func NewBuildFormDescriptorParamsWithTimeout

func NewBuildFormDescriptorParamsWithTimeout(timeout time.Duration) *BuildFormDescriptorParams

NewBuildFormDescriptorParamsWithTimeout creates a new BuildFormDescriptorParams object with the ability to set a timeout on a request.

func (*BuildFormDescriptorParams) SetAccountID

func (o *BuildFormDescriptorParams) SetAccountID(accountID strfmt.UUID)

SetAccountID adds the accountId to the build form descriptor params

func (*BuildFormDescriptorParams) SetBody

SetBody adds the body to the build form descriptor params

func (*BuildFormDescriptorParams) SetContext

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

SetContext adds the context to the build form descriptor params

func (*BuildFormDescriptorParams) SetControlPluginName

func (o *BuildFormDescriptorParams) SetControlPluginName(controlPluginName []string)

SetControlPluginName adds the controlPluginName to the build form descriptor params

func (*BuildFormDescriptorParams) SetDefaults

func (o *BuildFormDescriptorParams) SetDefaults()

SetDefaults hydrates default values in the build form descriptor params (not the query body).

All values with no default are reset to their zero value.

func (*BuildFormDescriptorParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the build form descriptor params

func (*BuildFormDescriptorParams) SetPaymentMethodID

func (o *BuildFormDescriptorParams) SetPaymentMethodID(paymentMethodID *strfmt.UUID)

SetPaymentMethodID adds the paymentMethodId to the build form descriptor params

func (*BuildFormDescriptorParams) SetPluginProperty

func (o *BuildFormDescriptorParams) SetPluginProperty(pluginProperty []string)

SetPluginProperty adds the pluginProperty to the build form descriptor params

func (*BuildFormDescriptorParams) SetTimeout

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

SetTimeout adds the timeout to the build form descriptor params

func (*BuildFormDescriptorParams) SetXKillbillComment

func (o *BuildFormDescriptorParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the build form descriptor params

func (*BuildFormDescriptorParams) SetXKillbillCreatedBy

func (o *BuildFormDescriptorParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the build form descriptor params

func (*BuildFormDescriptorParams) SetXKillbillReason

func (o *BuildFormDescriptorParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the build form descriptor params

func (*BuildFormDescriptorParams) WithAccountID

func (o *BuildFormDescriptorParams) WithAccountID(accountID strfmt.UUID) *BuildFormDescriptorParams

WithAccountID adds the accountID to the build form descriptor params

func (*BuildFormDescriptorParams) WithBody

WithBody adds the body to the build form descriptor params

func (*BuildFormDescriptorParams) WithContext

WithContext adds the context to the build form descriptor params

func (*BuildFormDescriptorParams) WithControlPluginName

func (o *BuildFormDescriptorParams) WithControlPluginName(controlPluginName []string) *BuildFormDescriptorParams

WithControlPluginName adds the controlPluginName to the build form descriptor params

func (*BuildFormDescriptorParams) WithDefaults

WithDefaults hydrates default values in the build form descriptor params (not the query body).

All values with no default are reset to their zero value.

func (*BuildFormDescriptorParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the build form descriptor params

func (*BuildFormDescriptorParams) WithPaymentMethodID

func (o *BuildFormDescriptorParams) WithPaymentMethodID(paymentMethodID *strfmt.UUID) *BuildFormDescriptorParams

WithPaymentMethodID adds the paymentMethodID to the build form descriptor params

func (*BuildFormDescriptorParams) WithPluginProperty

func (o *BuildFormDescriptorParams) WithPluginProperty(pluginProperty []string) *BuildFormDescriptorParams

WithPluginProperty adds the pluginProperty to the build form descriptor params

func (*BuildFormDescriptorParams) WithTimeout

WithTimeout adds the timeout to the build form descriptor params

func (*BuildFormDescriptorParams) WithXKillbillComment

func (o *BuildFormDescriptorParams) WithXKillbillComment(xKillbillComment *string) *BuildFormDescriptorParams

WithXKillbillComment adds the xKillbillComment to the build form descriptor params

func (*BuildFormDescriptorParams) WithXKillbillCreatedBy

func (o *BuildFormDescriptorParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *BuildFormDescriptorParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the build form descriptor params

func (*BuildFormDescriptorParams) WithXKillbillReason

func (o *BuildFormDescriptorParams) WithXKillbillReason(xKillbillReason *string) *BuildFormDescriptorParams

WithXKillbillReason adds the xKillbillReason to the build form descriptor params

func (*BuildFormDescriptorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BuildFormDescriptorReader

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

BuildFormDescriptorReader is a Reader for the BuildFormDescriptor structure.

func (*BuildFormDescriptorReader) ReadResponse

func (o *BuildFormDescriptorReader) 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 gateway API

func New

func New(transport runtime.ClientTransport,
	formats strfmt.Registry,
	authInfo runtime.ClientAuthInfoWriter,
	defaults KillbillDefaults) *Client

New creates a new payment gateway API client.

func (*Client) BuildComboFormDescriptor

func (a *Client) BuildComboFormDescriptor(ctx context.Context, params *BuildComboFormDescriptorParams) (*BuildComboFormDescriptorOK, error)

BuildComboFormDescriptor combos API to generate form data to redirect the customer to the gateway

func (*Client) BuildFormDescriptor

func (a *Client) BuildFormDescriptor(ctx context.Context, params *BuildFormDescriptorParams) (*BuildFormDescriptorOK, error)

BuildFormDescriptor generates form data to redirect the customer to the gateway

func (*Client) ProcessNotification

func (a *Client) ProcessNotification(ctx context.Context, params *ProcessNotificationParams) (*ProcessNotificationOK, error)

ProcessNotification processes a gateway notification

The response is built by the appropriate plugin

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BuildComboFormDescriptor(ctx context.Context, params *BuildComboFormDescriptorParams) (*BuildComboFormDescriptorOK, error)

	BuildFormDescriptor(ctx context.Context, params *BuildFormDescriptorParams) (*BuildFormDescriptorOK, error)

	ProcessNotification(ctx context.Context, params *ProcessNotificationParams) (*ProcessNotificationOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

type KillbillDefaults

type KillbillDefaults interface {
	// Default CreatedBy. If not set explicitly in params, this will be used.
	XKillbillCreatedBy() *string
	// Default Comment. If not set explicitly in params, this will be used.
	XKillbillComment() *string
	// Default Reason. If not set explicitly in params, this will be used.
	XKillbillReason() *string
	// Default WithWithProfilingInfo. If not set explicitly in params, this will be used.
	KillbillWithProfilingInfo() *string
	// Default WithStackTrace. If not set explicitly in params, this will be used.
	KillbillWithStackTrace() *bool
}

killbill default values. When a call is made to an operation, these values are used if params doesn't specify them.

type ProcessNotificationOK

type ProcessNotificationOK struct {
	HttpResponse runtime.ClientResponse
}

ProcessNotificationOK describes a response with status code 200, with default header values.

Successful

func NewProcessNotificationOK

func NewProcessNotificationOK() *ProcessNotificationOK

NewProcessNotificationOK creates a ProcessNotificationOK with default headers values

func (*ProcessNotificationOK) Code

func (o *ProcessNotificationOK) Code() int

Code gets the status code for the process notification o k response

func (*ProcessNotificationOK) Error

func (o *ProcessNotificationOK) Error() string

func (*ProcessNotificationOK) IsClientError

func (o *ProcessNotificationOK) IsClientError() bool

IsClientError returns true when this process notification o k response has a 4xx status code

func (*ProcessNotificationOK) IsCode

func (o *ProcessNotificationOK) IsCode(code int) bool

IsCode returns true when this process notification o k response a status code equal to that given

func (*ProcessNotificationOK) IsRedirect

func (o *ProcessNotificationOK) IsRedirect() bool

IsRedirect returns true when this process notification o k response has a 3xx status code

func (*ProcessNotificationOK) IsServerError

func (o *ProcessNotificationOK) IsServerError() bool

IsServerError returns true when this process notification o k response has a 5xx status code

func (*ProcessNotificationOK) IsSuccess

func (o *ProcessNotificationOK) IsSuccess() bool

IsSuccess returns true when this process notification o k response has a 2xx status code

func (*ProcessNotificationOK) String

func (o *ProcessNotificationOK) String() string

type ProcessNotificationParams

type ProcessNotificationParams struct {

	// XKillbillComment.
	XKillbillComment *string

	// XKillbillCreatedBy.
	XKillbillCreatedBy string

	// XKillbillReason.
	XKillbillReason *string

	// Body.
	Body string

	// ControlPluginName.
	ControlPluginName []string

	// PluginName.
	PluginName string

	// PluginProperty.
	PluginProperty []string

	WithProfilingInfo *string // If set, return KB hprof headers
	WithStackTrace    *bool   // If set, returns full stack trace with error message

	Context               context.Context
	HTTPClient            *http.Client
	ProcessLocationHeader bool // For create APIs that return 201, send another request and retrieve the resource.
	// contains filtered or unexported fields
}

ProcessNotificationParams contains all the parameters to send to the API endpoint

for the process notification operation.

Typically these are written to a http.Request.

func NewProcessNotificationParams

func NewProcessNotificationParams() *ProcessNotificationParams

NewProcessNotificationParams creates a new ProcessNotificationParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewProcessNotificationParamsWithContext

func NewProcessNotificationParamsWithContext(ctx context.Context) *ProcessNotificationParams

NewProcessNotificationParamsWithContext creates a new ProcessNotificationParams object with the ability to set a context for a request.

func NewProcessNotificationParamsWithHTTPClient

func NewProcessNotificationParamsWithHTTPClient(client *http.Client) *ProcessNotificationParams

NewProcessNotificationParamsWithHTTPClient creates a new ProcessNotificationParams object with the ability to set a custom HTTPClient for a request.

func NewProcessNotificationParamsWithTimeout

func NewProcessNotificationParamsWithTimeout(timeout time.Duration) *ProcessNotificationParams

NewProcessNotificationParamsWithTimeout creates a new ProcessNotificationParams object with the ability to set a timeout on a request.

func (*ProcessNotificationParams) SetBody

func (o *ProcessNotificationParams) SetBody(body string)

SetBody adds the body to the process notification params

func (*ProcessNotificationParams) SetContext

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

SetContext adds the context to the process notification params

func (*ProcessNotificationParams) SetControlPluginName

func (o *ProcessNotificationParams) SetControlPluginName(controlPluginName []string)

SetControlPluginName adds the controlPluginName to the process notification params

func (*ProcessNotificationParams) SetDefaults

func (o *ProcessNotificationParams) SetDefaults()

SetDefaults hydrates default values in the process notification params (not the query body).

All values with no default are reset to their zero value.

func (*ProcessNotificationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the process notification params

func (*ProcessNotificationParams) SetPluginName

func (o *ProcessNotificationParams) SetPluginName(pluginName string)

SetPluginName adds the pluginName to the process notification params

func (*ProcessNotificationParams) SetPluginProperty

func (o *ProcessNotificationParams) SetPluginProperty(pluginProperty []string)

SetPluginProperty adds the pluginProperty to the process notification params

func (*ProcessNotificationParams) SetTimeout

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

SetTimeout adds the timeout to the process notification params

func (*ProcessNotificationParams) SetXKillbillComment

func (o *ProcessNotificationParams) SetXKillbillComment(xKillbillComment *string)

SetXKillbillComment adds the xKillbillComment to the process notification params

func (*ProcessNotificationParams) SetXKillbillCreatedBy

func (o *ProcessNotificationParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the process notification params

func (*ProcessNotificationParams) SetXKillbillReason

func (o *ProcessNotificationParams) SetXKillbillReason(xKillbillReason *string)

SetXKillbillReason adds the xKillbillReason to the process notification params

func (*ProcessNotificationParams) WithBody

WithBody adds the body to the process notification params

func (*ProcessNotificationParams) WithContext

WithContext adds the context to the process notification params

func (*ProcessNotificationParams) WithControlPluginName

func (o *ProcessNotificationParams) WithControlPluginName(controlPluginName []string) *ProcessNotificationParams

WithControlPluginName adds the controlPluginName to the process notification params

func (*ProcessNotificationParams) WithDefaults

WithDefaults hydrates default values in the process notification params (not the query body).

All values with no default are reset to their zero value.

func (*ProcessNotificationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the process notification params

func (*ProcessNotificationParams) WithPluginName

func (o *ProcessNotificationParams) WithPluginName(pluginName string) *ProcessNotificationParams

WithPluginName adds the pluginName to the process notification params

func (*ProcessNotificationParams) WithPluginProperty

func (o *ProcessNotificationParams) WithPluginProperty(pluginProperty []string) *ProcessNotificationParams

WithPluginProperty adds the pluginProperty to the process notification params

func (*ProcessNotificationParams) WithTimeout

WithTimeout adds the timeout to the process notification params

func (*ProcessNotificationParams) WithXKillbillComment

func (o *ProcessNotificationParams) WithXKillbillComment(xKillbillComment *string) *ProcessNotificationParams

WithXKillbillComment adds the xKillbillComment to the process notification params

func (*ProcessNotificationParams) WithXKillbillCreatedBy

func (o *ProcessNotificationParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *ProcessNotificationParams

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the process notification params

func (*ProcessNotificationParams) WithXKillbillReason

func (o *ProcessNotificationParams) WithXKillbillReason(xKillbillReason *string) *ProcessNotificationParams

WithXKillbillReason adds the xKillbillReason to the process notification params

func (*ProcessNotificationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ProcessNotificationReader

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

ProcessNotificationReader is a Reader for the ProcessNotification structure.

func (*ProcessNotificationReader) ReadResponse

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