custom_field

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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 custom field API

func New

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

New creates a new custom field API client.

func (*Client) GetCustomFieldAuditLogsWithHistory

func (a *Client) GetCustomFieldAuditLogsWithHistory(ctx context.Context, params *GetCustomFieldAuditLogsWithHistoryParams) (*GetCustomFieldAuditLogsWithHistoryOK, error)

GetCustomFieldAuditLogsWithHistory retrieves custom field audit logs with history by id

func (*Client) GetCustomFields

func (a *Client) GetCustomFields(ctx context.Context, params *GetCustomFieldsParams) (*GetCustomFieldsOK, error)

GetCustomFields lists custom fields

func (*Client) SearchCustomFields

func (a *Client) SearchCustomFields(ctx context.Context, params *SearchCustomFieldsParams) (*SearchCustomFieldsOK, error)

SearchCustomFields searches custom fields

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type GetCustomFieldAuditLogsWithHistoryNotFound

type GetCustomFieldAuditLogsWithHistoryNotFound struct {
	HttpResponse runtime.ClientResponse
}

GetCustomFieldAuditLogsWithHistoryNotFound handles this case with default header values.

Account not found

func NewGetCustomFieldAuditLogsWithHistoryNotFound

func NewGetCustomFieldAuditLogsWithHistoryNotFound() *GetCustomFieldAuditLogsWithHistoryNotFound

NewGetCustomFieldAuditLogsWithHistoryNotFound creates a GetCustomFieldAuditLogsWithHistoryNotFound with default headers values

func (*GetCustomFieldAuditLogsWithHistoryNotFound) Error

type GetCustomFieldAuditLogsWithHistoryOK

type GetCustomFieldAuditLogsWithHistoryOK struct {
	Payload []*kbmodel.AuditLog

	HttpResponse runtime.ClientResponse
}

GetCustomFieldAuditLogsWithHistoryOK handles this case with default header values.

successful operation

func NewGetCustomFieldAuditLogsWithHistoryOK

func NewGetCustomFieldAuditLogsWithHistoryOK() *GetCustomFieldAuditLogsWithHistoryOK

NewGetCustomFieldAuditLogsWithHistoryOK creates a GetCustomFieldAuditLogsWithHistoryOK with default headers values

func (*GetCustomFieldAuditLogsWithHistoryOK) Error

type GetCustomFieldAuditLogsWithHistoryParams

type GetCustomFieldAuditLogsWithHistoryParams struct {

	/*CustomFieldID*/
	CustomFieldID strfmt.UUID

	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
}

GetCustomFieldAuditLogsWithHistoryParams contains all the parameters to send to the API endpoint for the get custom field audit logs with history operation typically these are written to a http.Request

func NewGetCustomFieldAuditLogsWithHistoryParams

func NewGetCustomFieldAuditLogsWithHistoryParams() *GetCustomFieldAuditLogsWithHistoryParams

NewGetCustomFieldAuditLogsWithHistoryParams creates a new GetCustomFieldAuditLogsWithHistoryParams object with the default values initialized.

func NewGetCustomFieldAuditLogsWithHistoryParamsWithContext

func NewGetCustomFieldAuditLogsWithHistoryParamsWithContext(ctx context.Context) *GetCustomFieldAuditLogsWithHistoryParams

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

func NewGetCustomFieldAuditLogsWithHistoryParamsWithHTTPClient

func NewGetCustomFieldAuditLogsWithHistoryParamsWithHTTPClient(client *http.Client) *GetCustomFieldAuditLogsWithHistoryParams

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

func NewGetCustomFieldAuditLogsWithHistoryParamsWithTimeout

func NewGetCustomFieldAuditLogsWithHistoryParamsWithTimeout(timeout time.Duration) *GetCustomFieldAuditLogsWithHistoryParams

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

func (*GetCustomFieldAuditLogsWithHistoryParams) SetContext

SetContext adds the context to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetCustomFieldID

func (o *GetCustomFieldAuditLogsWithHistoryParams) SetCustomFieldID(customFieldID strfmt.UUID)

SetCustomFieldID adds the customFieldId to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) SetTimeout

SetTimeout adds the timeout to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithContext

WithContext adds the context to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithCustomFieldID

WithCustomFieldID adds the customFieldID to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WithTimeout

WithTimeout adds the timeout to the get custom field audit logs with history params

func (*GetCustomFieldAuditLogsWithHistoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCustomFieldAuditLogsWithHistoryReader

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

GetCustomFieldAuditLogsWithHistoryReader is a Reader for the GetCustomFieldAuditLogsWithHistory structure.

func (*GetCustomFieldAuditLogsWithHistoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomFieldsOK

type GetCustomFieldsOK struct {
	Payload []*kbmodel.CustomField

	HttpResponse runtime.ClientResponse
}

GetCustomFieldsOK handles this case with default header values.

successful operation

func NewGetCustomFieldsOK

func NewGetCustomFieldsOK() *GetCustomFieldsOK

NewGetCustomFieldsOK creates a GetCustomFieldsOK with default headers values

func (*GetCustomFieldsOK) Error

func (o *GetCustomFieldsOK) Error() string

type GetCustomFieldsParams

type GetCustomFieldsParams struct {

	/*Audit*/
	Audit *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64

	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
}

GetCustomFieldsParams contains all the parameters to send to the API endpoint for the get custom fields operation typically these are written to a http.Request

func NewGetCustomFieldsParams

func NewGetCustomFieldsParams() *GetCustomFieldsParams

NewGetCustomFieldsParams creates a new GetCustomFieldsParams object with the default values initialized.

func NewGetCustomFieldsParamsWithContext

func NewGetCustomFieldsParamsWithContext(ctx context.Context) *GetCustomFieldsParams

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

func NewGetCustomFieldsParamsWithHTTPClient

func NewGetCustomFieldsParamsWithHTTPClient(client *http.Client) *GetCustomFieldsParams

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

func NewGetCustomFieldsParamsWithTimeout

func NewGetCustomFieldsParamsWithTimeout(timeout time.Duration) *GetCustomFieldsParams

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

func (*GetCustomFieldsParams) SetAudit

func (o *GetCustomFieldsParams) SetAudit(audit *string)

SetAudit adds the audit to the get custom fields params

func (*GetCustomFieldsParams) SetContext

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

SetContext adds the context to the get custom fields params

func (*GetCustomFieldsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get custom fields params

func (*GetCustomFieldsParams) SetLimit

func (o *GetCustomFieldsParams) SetLimit(limit *int64)

SetLimit adds the limit to the get custom fields params

func (*GetCustomFieldsParams) SetOffset

func (o *GetCustomFieldsParams) SetOffset(offset *int64)

SetOffset adds the offset to the get custom fields params

func (*GetCustomFieldsParams) SetTimeout

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

SetTimeout adds the timeout to the get custom fields params

func (*GetCustomFieldsParams) WithAudit

func (o *GetCustomFieldsParams) WithAudit(audit *string) *GetCustomFieldsParams

WithAudit adds the audit to the get custom fields params

func (*GetCustomFieldsParams) WithContext

WithContext adds the context to the get custom fields params

func (*GetCustomFieldsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get custom fields params

func (*GetCustomFieldsParams) WithLimit

func (o *GetCustomFieldsParams) WithLimit(limit *int64) *GetCustomFieldsParams

WithLimit adds the limit to the get custom fields params

func (*GetCustomFieldsParams) WithOffset

func (o *GetCustomFieldsParams) WithOffset(offset *int64) *GetCustomFieldsParams

WithOffset adds the offset to the get custom fields params

func (*GetCustomFieldsParams) WithTimeout

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

WithTimeout adds the timeout to the get custom fields params

func (*GetCustomFieldsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCustomFieldsReader

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

GetCustomFieldsReader is a Reader for the GetCustomFields structure.

func (*GetCustomFieldsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ICustomField

type ICustomField interface {
	/*
		GetCustomFieldAuditLogsWithHistory retrieves custom field audit logs with history by id
	*/
	GetCustomFieldAuditLogsWithHistory(ctx context.Context, params *GetCustomFieldAuditLogsWithHistoryParams) (*GetCustomFieldAuditLogsWithHistoryOK, error)

	/*
		GetCustomFields lists custom fields
	*/
	GetCustomFields(ctx context.Context, params *GetCustomFieldsParams) (*GetCustomFieldsOK, error)

	/*
		SearchCustomFields searches custom fields
	*/
	SearchCustomFields(ctx context.Context, params *SearchCustomFieldsParams) (*SearchCustomFieldsOK, error)
}

ICustomField - interface for CustomField client.

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 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 SearchCustomFieldsOK

type SearchCustomFieldsOK struct {
	Payload []*kbmodel.CustomField

	HttpResponse runtime.ClientResponse
}

SearchCustomFieldsOK handles this case with default header values.

successful operation

func NewSearchCustomFieldsOK

func NewSearchCustomFieldsOK() *SearchCustomFieldsOK

NewSearchCustomFieldsOK creates a SearchCustomFieldsOK with default headers values

func (*SearchCustomFieldsOK) Error

func (o *SearchCustomFieldsOK) Error() string

type SearchCustomFieldsParams

type SearchCustomFieldsParams struct {

	/*Audit*/
	Audit *string
	/*Limit*/
	Limit *int64
	/*Offset*/
	Offset *int64
	/*SearchKey*/
	SearchKey string

	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
}

SearchCustomFieldsParams contains all the parameters to send to the API endpoint for the search custom fields operation typically these are written to a http.Request

func NewSearchCustomFieldsParams

func NewSearchCustomFieldsParams() *SearchCustomFieldsParams

NewSearchCustomFieldsParams creates a new SearchCustomFieldsParams object with the default values initialized.

func NewSearchCustomFieldsParamsWithContext

func NewSearchCustomFieldsParamsWithContext(ctx context.Context) *SearchCustomFieldsParams

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

func NewSearchCustomFieldsParamsWithHTTPClient

func NewSearchCustomFieldsParamsWithHTTPClient(client *http.Client) *SearchCustomFieldsParams

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

func NewSearchCustomFieldsParamsWithTimeout

func NewSearchCustomFieldsParamsWithTimeout(timeout time.Duration) *SearchCustomFieldsParams

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

func (*SearchCustomFieldsParams) SetAudit

func (o *SearchCustomFieldsParams) SetAudit(audit *string)

SetAudit adds the audit to the search custom fields params

func (*SearchCustomFieldsParams) SetContext

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

SetContext adds the context to the search custom fields params

func (*SearchCustomFieldsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search custom fields params

func (*SearchCustomFieldsParams) SetLimit

func (o *SearchCustomFieldsParams) SetLimit(limit *int64)

SetLimit adds the limit to the search custom fields params

func (*SearchCustomFieldsParams) SetOffset

func (o *SearchCustomFieldsParams) SetOffset(offset *int64)

SetOffset adds the offset to the search custom fields params

func (*SearchCustomFieldsParams) SetSearchKey

func (o *SearchCustomFieldsParams) SetSearchKey(searchKey string)

SetSearchKey adds the searchKey to the search custom fields params

func (*SearchCustomFieldsParams) SetTimeout

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

SetTimeout adds the timeout to the search custom fields params

func (*SearchCustomFieldsParams) WithAudit

WithAudit adds the audit to the search custom fields params

func (*SearchCustomFieldsParams) WithContext

WithContext adds the context to the search custom fields params

func (*SearchCustomFieldsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search custom fields params

func (*SearchCustomFieldsParams) WithLimit

WithLimit adds the limit to the search custom fields params

func (*SearchCustomFieldsParams) WithOffset

WithOffset adds the offset to the search custom fields params

func (*SearchCustomFieldsParams) WithSearchKey

func (o *SearchCustomFieldsParams) WithSearchKey(searchKey string) *SearchCustomFieldsParams

WithSearchKey adds the searchKey to the search custom fields params

func (*SearchCustomFieldsParams) WithTimeout

WithTimeout adds the timeout to the search custom fields params

func (*SearchCustomFieldsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchCustomFieldsReader

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

SearchCustomFieldsReader is a Reader for the SearchCustomFields structure.

func (*SearchCustomFieldsReader) ReadResponse

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