Documentation
¶
Index ¶
- type BuildComboFormDescriptorBadRequest
- func (o *BuildComboFormDescriptorBadRequest) Code() int
- func (o *BuildComboFormDescriptorBadRequest) Error() string
- func (o *BuildComboFormDescriptorBadRequest) IsClientError() bool
- func (o *BuildComboFormDescriptorBadRequest) IsCode(code int) bool
- func (o *BuildComboFormDescriptorBadRequest) IsRedirect() bool
- func (o *BuildComboFormDescriptorBadRequest) IsServerError() bool
- func (o *BuildComboFormDescriptorBadRequest) IsSuccess() bool
- func (o *BuildComboFormDescriptorBadRequest) String() string
- type BuildComboFormDescriptorOK
- func (o *BuildComboFormDescriptorOK) Code() int
- func (o *BuildComboFormDescriptorOK) Error() string
- func (o *BuildComboFormDescriptorOK) GetPayload() *kbmodel.HostedPaymentPageFormDescriptor
- func (o *BuildComboFormDescriptorOK) IsClientError() bool
- func (o *BuildComboFormDescriptorOK) IsCode(code int) bool
- func (o *BuildComboFormDescriptorOK) IsRedirect() bool
- func (o *BuildComboFormDescriptorOK) IsServerError() bool
- func (o *BuildComboFormDescriptorOK) IsSuccess() bool
- func (o *BuildComboFormDescriptorOK) String() string
- type BuildComboFormDescriptorParams
- func NewBuildComboFormDescriptorParams() *BuildComboFormDescriptorParams
- func NewBuildComboFormDescriptorParamsWithContext(ctx context.Context) *BuildComboFormDescriptorParams
- func NewBuildComboFormDescriptorParamsWithHTTPClient(client *http.Client) *BuildComboFormDescriptorParams
- func NewBuildComboFormDescriptorParamsWithTimeout(timeout time.Duration) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) SetBody(body *kbmodel.ComboHostedPaymentPage)
- func (o *BuildComboFormDescriptorParams) SetContext(ctx context.Context)
- func (o *BuildComboFormDescriptorParams) SetControlPluginName(controlPluginName []string)
- func (o *BuildComboFormDescriptorParams) SetDefaults()
- func (o *BuildComboFormDescriptorParams) SetHTTPClient(client *http.Client)
- func (o *BuildComboFormDescriptorParams) SetPluginProperty(pluginProperty []string)
- func (o *BuildComboFormDescriptorParams) SetTimeout(timeout time.Duration)
- func (o *BuildComboFormDescriptorParams) SetXKillbillComment(xKillbillComment *string)
- func (o *BuildComboFormDescriptorParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
- func (o *BuildComboFormDescriptorParams) SetXKillbillReason(xKillbillReason *string)
- func (o *BuildComboFormDescriptorParams) WithBody(body *kbmodel.ComboHostedPaymentPage) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithContext(ctx context.Context) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithControlPluginName(controlPluginName []string) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithDefaults() *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithHTTPClient(client *http.Client) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithPluginProperty(pluginProperty []string) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithTimeout(timeout time.Duration) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithXKillbillComment(xKillbillComment *string) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WithXKillbillReason(xKillbillReason *string) *BuildComboFormDescriptorParams
- func (o *BuildComboFormDescriptorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BuildComboFormDescriptorReader
- type BuildFormDescriptorNotFound
- func (o *BuildFormDescriptorNotFound) Code() int
- func (o *BuildFormDescriptorNotFound) Error() string
- func (o *BuildFormDescriptorNotFound) IsClientError() bool
- func (o *BuildFormDescriptorNotFound) IsCode(code int) bool
- func (o *BuildFormDescriptorNotFound) IsRedirect() bool
- func (o *BuildFormDescriptorNotFound) IsServerError() bool
- func (o *BuildFormDescriptorNotFound) IsSuccess() bool
- func (o *BuildFormDescriptorNotFound) String() string
- type BuildFormDescriptorOK
- func (o *BuildFormDescriptorOK) Code() int
- func (o *BuildFormDescriptorOK) Error() string
- func (o *BuildFormDescriptorOK) GetPayload() *kbmodel.HostedPaymentPageFormDescriptor
- func (o *BuildFormDescriptorOK) IsClientError() bool
- func (o *BuildFormDescriptorOK) IsCode(code int) bool
- func (o *BuildFormDescriptorOK) IsRedirect() bool
- func (o *BuildFormDescriptorOK) IsServerError() bool
- func (o *BuildFormDescriptorOK) IsSuccess() bool
- func (o *BuildFormDescriptorOK) String() string
- type BuildFormDescriptorParams
- func NewBuildFormDescriptorParams() *BuildFormDescriptorParams
- func NewBuildFormDescriptorParamsWithContext(ctx context.Context) *BuildFormDescriptorParams
- func NewBuildFormDescriptorParamsWithHTTPClient(client *http.Client) *BuildFormDescriptorParams
- func NewBuildFormDescriptorParamsWithTimeout(timeout time.Duration) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) SetAccountID(accountID strfmt.UUID)
- func (o *BuildFormDescriptorParams) SetBody(body *kbmodel.HostedPaymentPageFields)
- func (o *BuildFormDescriptorParams) SetContext(ctx context.Context)
- func (o *BuildFormDescriptorParams) SetControlPluginName(controlPluginName []string)
- func (o *BuildFormDescriptorParams) SetDefaults()
- func (o *BuildFormDescriptorParams) SetHTTPClient(client *http.Client)
- func (o *BuildFormDescriptorParams) SetPaymentMethodID(paymentMethodID *strfmt.UUID)
- func (o *BuildFormDescriptorParams) SetPluginProperty(pluginProperty []string)
- func (o *BuildFormDescriptorParams) SetTimeout(timeout time.Duration)
- func (o *BuildFormDescriptorParams) SetXKillbillComment(xKillbillComment *string)
- func (o *BuildFormDescriptorParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
- func (o *BuildFormDescriptorParams) SetXKillbillReason(xKillbillReason *string)
- func (o *BuildFormDescriptorParams) WithAccountID(accountID strfmt.UUID) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithBody(body *kbmodel.HostedPaymentPageFields) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithContext(ctx context.Context) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithControlPluginName(controlPluginName []string) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithDefaults() *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithHTTPClient(client *http.Client) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithPaymentMethodID(paymentMethodID *strfmt.UUID) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithPluginProperty(pluginProperty []string) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithTimeout(timeout time.Duration) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithXKillbillComment(xKillbillComment *string) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WithXKillbillReason(xKillbillReason *string) *BuildFormDescriptorParams
- func (o *BuildFormDescriptorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BuildFormDescriptorReader
- type Client
- func (a *Client) BuildComboFormDescriptor(ctx context.Context, params *BuildComboFormDescriptorParams) (*BuildComboFormDescriptorOK, error)
- func (a *Client) BuildFormDescriptor(ctx context.Context, params *BuildFormDescriptorParams) (*BuildFormDescriptorOK, error)
- func (a *Client) ProcessNotification(ctx context.Context, params *ProcessNotificationParams) (*ProcessNotificationOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type KillbillDefaults
- type ProcessNotificationOK
- func (o *ProcessNotificationOK) Code() int
- func (o *ProcessNotificationOK) Error() string
- func (o *ProcessNotificationOK) IsClientError() bool
- func (o *ProcessNotificationOK) IsCode(code int) bool
- func (o *ProcessNotificationOK) IsRedirect() bool
- func (o *ProcessNotificationOK) IsServerError() bool
- func (o *ProcessNotificationOK) IsSuccess() bool
- func (o *ProcessNotificationOK) String() string
- type ProcessNotificationParams
- func NewProcessNotificationParams() *ProcessNotificationParams
- func NewProcessNotificationParamsWithContext(ctx context.Context) *ProcessNotificationParams
- func NewProcessNotificationParamsWithHTTPClient(client *http.Client) *ProcessNotificationParams
- func NewProcessNotificationParamsWithTimeout(timeout time.Duration) *ProcessNotificationParams
- func (o *ProcessNotificationParams) SetBody(body string)
- func (o *ProcessNotificationParams) SetContext(ctx context.Context)
- func (o *ProcessNotificationParams) SetControlPluginName(controlPluginName []string)
- func (o *ProcessNotificationParams) SetDefaults()
- func (o *ProcessNotificationParams) SetHTTPClient(client *http.Client)
- func (o *ProcessNotificationParams) SetPluginName(pluginName string)
- func (o *ProcessNotificationParams) SetPluginProperty(pluginProperty []string)
- func (o *ProcessNotificationParams) SetTimeout(timeout time.Duration)
- func (o *ProcessNotificationParams) SetXKillbillComment(xKillbillComment *string)
- func (o *ProcessNotificationParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
- func (o *ProcessNotificationParams) SetXKillbillReason(xKillbillReason *string)
- func (o *ProcessNotificationParams) WithBody(body string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithContext(ctx context.Context) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithControlPluginName(controlPluginName []string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithDefaults() *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithHTTPClient(client *http.Client) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithPluginName(pluginName string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithPluginProperty(pluginProperty []string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithTimeout(timeout time.Duration) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithXKillbillComment(xKillbillComment *string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WithXKillbillReason(xKillbillReason *string) *ProcessNotificationParams
- func (o *ProcessNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ProcessNotificationReader
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 ¶
func (o *BuildComboFormDescriptorBadRequest) Code() int
Code gets the status code for the build combo form descriptor bad request response
func (*BuildComboFormDescriptorBadRequest) Error ¶
func (o *BuildComboFormDescriptorBadRequest) Error() string
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 ¶
func (o *BuildComboFormDescriptorBadRequest) IsCode(code int) bool
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 ¶
func (o *BuildComboFormDescriptorBadRequest) IsSuccess() bool
IsSuccess returns true when this build combo form descriptor bad request response has a 2xx status code
func (*BuildComboFormDescriptorBadRequest) String ¶
func (o *BuildComboFormDescriptorBadRequest) String() 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 (o *BuildComboFormDescriptorOK) Error() string
func (*BuildComboFormDescriptorOK) GetPayload ¶
func (o *BuildComboFormDescriptorOK) GetPayload() *kbmodel.HostedPaymentPageFormDescriptor
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 ¶
func (o *BuildComboFormDescriptorParams) SetBody(body *kbmodel.ComboHostedPaymentPage)
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 ¶
func (o *BuildComboFormDescriptorParams) WithBody(body *kbmodel.ComboHostedPaymentPage) *BuildComboFormDescriptorParams
WithBody adds the body to the build combo form descriptor params
func (*BuildComboFormDescriptorParams) WithContext ¶
func (o *BuildComboFormDescriptorParams) WithContext(ctx context.Context) *BuildComboFormDescriptorParams
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 ¶
func (o *BuildComboFormDescriptorParams) WithDefaults() *BuildComboFormDescriptorParams
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 ¶
func (o *BuildComboFormDescriptorParams) WithHTTPClient(client *http.Client) *BuildComboFormDescriptorParams
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 ¶
func (o *BuildComboFormDescriptorParams) WithTimeout(timeout time.Duration) *BuildComboFormDescriptorParams
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 ¶
func (o *BuildComboFormDescriptorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *BuildFormDescriptorNotFound) Error() string
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 (o *BuildFormDescriptorOK) GetPayload() *kbmodel.HostedPaymentPageFormDescriptor
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 ¶
func (o *BuildFormDescriptorParams) SetBody(body *kbmodel.HostedPaymentPageFields)
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 ¶
func (o *BuildFormDescriptorParams) WithBody(body *kbmodel.HostedPaymentPageFields) *BuildFormDescriptorParams
WithBody adds the body to the build form descriptor params
func (*BuildFormDescriptorParams) WithContext ¶
func (o *BuildFormDescriptorParams) WithContext(ctx context.Context) *BuildFormDescriptorParams
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 ¶
func (o *BuildFormDescriptorParams) WithDefaults() *BuildFormDescriptorParams
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 ¶
func (o *BuildFormDescriptorParams) WithTimeout(timeout time.Duration) *BuildFormDescriptorParams
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 ¶
func (o *BuildFormDescriptorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ProcessNotificationParams) WithBody(body string) *ProcessNotificationParams
WithBody adds the body to the process notification params
func (*ProcessNotificationParams) WithContext ¶
func (o *ProcessNotificationParams) WithContext(ctx context.Context) *ProcessNotificationParams
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 ¶
func (o *ProcessNotificationParams) WithDefaults() *ProcessNotificationParams
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 ¶
func (o *ProcessNotificationParams) WithTimeout(timeout time.Duration) *ProcessNotificationParams
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 ¶
func (o *ProcessNotificationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.