Help us shape the future of Go! Take the 2026 Go Developer Survey

export

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: 11 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 export API

func New

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

New creates a new export API client.

func (*Client) ExportDataForAccount

func (a *Client) ExportDataForAccount(ctx context.Context, params *ExportDataForAccountParams) (*ExportDataForAccountOK, error)

ExportDataForAccount exports account data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ExportDataForAccountBadRequest

type ExportDataForAccountBadRequest struct {
	HttpResponse runtime.ClientResponse
}

ExportDataForAccountBadRequest handles this case with default header values.

Invalid account id supplied

func NewExportDataForAccountBadRequest

func NewExportDataForAccountBadRequest() *ExportDataForAccountBadRequest

NewExportDataForAccountBadRequest creates a ExportDataForAccountBadRequest with default headers values

func (*ExportDataForAccountBadRequest) Error

type ExportDataForAccountNotFound

type ExportDataForAccountNotFound struct {
	HttpResponse runtime.ClientResponse
}

ExportDataForAccountNotFound handles this case with default header values.

Account not found

func NewExportDataForAccountNotFound

func NewExportDataForAccountNotFound() *ExportDataForAccountNotFound

NewExportDataForAccountNotFound creates a ExportDataForAccountNotFound with default headers values

func (*ExportDataForAccountNotFound) Error

type ExportDataForAccountOK

type ExportDataForAccountOK struct {
	HttpResponse runtime.ClientResponse
}

ExportDataForAccountOK handles this case with default header values.

Success

func NewExportDataForAccountOK

func NewExportDataForAccountOK() *ExportDataForAccountOK

NewExportDataForAccountOK creates a ExportDataForAccountOK with default headers values

func (*ExportDataForAccountOK) Error

func (o *ExportDataForAccountOK) Error() string

type ExportDataForAccountParams

type ExportDataForAccountParams struct {

	/*XKillbillComment*/
	XKillbillComment *string
	/*XKillbillCreatedBy*/
	XKillbillCreatedBy string
	/*XKillbillReason*/
	XKillbillReason *string
	/*AccountID*/
	AccountID 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
}

ExportDataForAccountParams contains all the parameters to send to the API endpoint for the export data for account operation typically these are written to a http.Request

func NewExportDataForAccountParams

func NewExportDataForAccountParams() *ExportDataForAccountParams

NewExportDataForAccountParams creates a new ExportDataForAccountParams object with the default values initialized.

func NewExportDataForAccountParamsWithContext

func NewExportDataForAccountParamsWithContext(ctx context.Context) *ExportDataForAccountParams

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

func NewExportDataForAccountParamsWithHTTPClient

func NewExportDataForAccountParamsWithHTTPClient(client *http.Client) *ExportDataForAccountParams

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

func NewExportDataForAccountParamsWithTimeout

func NewExportDataForAccountParamsWithTimeout(timeout time.Duration) *ExportDataForAccountParams

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

func (*ExportDataForAccountParams) SetAccountID

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

SetAccountID adds the accountId to the export data for account params

func (*ExportDataForAccountParams) SetContext

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

SetContext adds the context to the export data for account params

func (*ExportDataForAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the export data for account params

func (*ExportDataForAccountParams) SetTimeout

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

SetTimeout adds the timeout to the export data for account params

func (*ExportDataForAccountParams) SetXKillbillComment

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

SetXKillbillComment adds the xKillbillComment to the export data for account params

func (*ExportDataForAccountParams) SetXKillbillCreatedBy

func (o *ExportDataForAccountParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)

SetXKillbillCreatedBy adds the xKillbillCreatedBy to the export data for account params

func (*ExportDataForAccountParams) SetXKillbillReason

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

SetXKillbillReason adds the xKillbillReason to the export data for account params

func (*ExportDataForAccountParams) WithAccountID

WithAccountID adds the accountID to the export data for account params

func (*ExportDataForAccountParams) WithContext

WithContext adds the context to the export data for account params

func (*ExportDataForAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the export data for account params

func (*ExportDataForAccountParams) WithTimeout

WithTimeout adds the timeout to the export data for account params

func (*ExportDataForAccountParams) WithXKillbillComment

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

WithXKillbillComment adds the xKillbillComment to the export data for account params

func (*ExportDataForAccountParams) WithXKillbillCreatedBy

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

WithXKillbillCreatedBy adds the xKillbillCreatedBy to the export data for account params

func (*ExportDataForAccountParams) WithXKillbillReason

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

WithXKillbillReason adds the xKillbillReason to the export data for account params

func (*ExportDataForAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ExportDataForAccountReader

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

ExportDataForAccountReader is a Reader for the ExportDataForAccount structure.

func (*ExportDataForAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type IExport

type IExport interface {
	/*
		ExportDataForAccount exports account data
	*/
	ExportDataForAccount(ctx context.Context, params *ExportDataForAccountParams) (*ExportDataForAccountOK, error)
}

IExport - interface for Export 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.

Jump to

Keyboard shortcuts

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