Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ExportDataForAccountBadRequest
- func (o *ExportDataForAccountBadRequest) Code() int
- func (o *ExportDataForAccountBadRequest) Error() string
- func (o *ExportDataForAccountBadRequest) IsClientError() bool
- func (o *ExportDataForAccountBadRequest) IsCode(code int) bool
- func (o *ExportDataForAccountBadRequest) IsRedirect() bool
- func (o *ExportDataForAccountBadRequest) IsServerError() bool
- func (o *ExportDataForAccountBadRequest) IsSuccess() bool
- func (o *ExportDataForAccountBadRequest) String() string
- type ExportDataForAccountNotFound
- func (o *ExportDataForAccountNotFound) Code() int
- func (o *ExportDataForAccountNotFound) Error() string
- func (o *ExportDataForAccountNotFound) IsClientError() bool
- func (o *ExportDataForAccountNotFound) IsCode(code int) bool
- func (o *ExportDataForAccountNotFound) IsRedirect() bool
- func (o *ExportDataForAccountNotFound) IsServerError() bool
- func (o *ExportDataForAccountNotFound) IsSuccess() bool
- func (o *ExportDataForAccountNotFound) String() string
- type ExportDataForAccountOK
- func (o *ExportDataForAccountOK) Code() int
- func (o *ExportDataForAccountOK) Error() string
- func (o *ExportDataForAccountOK) IsClientError() bool
- func (o *ExportDataForAccountOK) IsCode(code int) bool
- func (o *ExportDataForAccountOK) IsRedirect() bool
- func (o *ExportDataForAccountOK) IsServerError() bool
- func (o *ExportDataForAccountOK) IsSuccess() bool
- func (o *ExportDataForAccountOK) String() string
- type ExportDataForAccountParams
- func NewExportDataForAccountParams() *ExportDataForAccountParams
- func NewExportDataForAccountParamsWithContext(ctx context.Context) *ExportDataForAccountParams
- func NewExportDataForAccountParamsWithHTTPClient(client *http.Client) *ExportDataForAccountParams
- func NewExportDataForAccountParamsWithTimeout(timeout time.Duration) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) SetAccountID(accountID strfmt.UUID)
- func (o *ExportDataForAccountParams) SetContext(ctx context.Context)
- func (o *ExportDataForAccountParams) SetDefaults()
- func (o *ExportDataForAccountParams) SetHTTPClient(client *http.Client)
- func (o *ExportDataForAccountParams) SetTimeout(timeout time.Duration)
- func (o *ExportDataForAccountParams) SetXKillbillComment(xKillbillComment *string)
- func (o *ExportDataForAccountParams) SetXKillbillCreatedBy(xKillbillCreatedBy string)
- func (o *ExportDataForAccountParams) SetXKillbillReason(xKillbillReason *string)
- func (o *ExportDataForAccountParams) WithAccountID(accountID strfmt.UUID) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithContext(ctx context.Context) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithDefaults() *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithHTTPClient(client *http.Client) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithTimeout(timeout time.Duration) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithXKillbillComment(xKillbillComment *string) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithXKillbillCreatedBy(xKillbillCreatedBy string) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WithXKillbillReason(xKillbillReason *string) *ExportDataForAccountParams
- func (o *ExportDataForAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExportDataForAccountReader
- type KillbillDefaults
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 ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ExportDataForAccount(ctx context.Context, params *ExportDataForAccountParams) (*ExportDataForAccountOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
type ExportDataForAccountBadRequest ¶
type ExportDataForAccountBadRequest struct {
HttpResponse runtime.ClientResponse
}
ExportDataForAccountBadRequest describes a response with status code 400, with default header values.
Invalid account id supplied
func NewExportDataForAccountBadRequest ¶
func NewExportDataForAccountBadRequest() *ExportDataForAccountBadRequest
NewExportDataForAccountBadRequest creates a ExportDataForAccountBadRequest with default headers values
func (*ExportDataForAccountBadRequest) Code ¶
func (o *ExportDataForAccountBadRequest) Code() int
Code gets the status code for the export data for account bad request response
func (*ExportDataForAccountBadRequest) Error ¶
func (o *ExportDataForAccountBadRequest) Error() string
func (*ExportDataForAccountBadRequest) IsClientError ¶
func (o *ExportDataForAccountBadRequest) IsClientError() bool
IsClientError returns true when this export data for account bad request response has a 4xx status code
func (*ExportDataForAccountBadRequest) IsCode ¶
func (o *ExportDataForAccountBadRequest) IsCode(code int) bool
IsCode returns true when this export data for account bad request response a status code equal to that given
func (*ExportDataForAccountBadRequest) IsRedirect ¶
func (o *ExportDataForAccountBadRequest) IsRedirect() bool
IsRedirect returns true when this export data for account bad request response has a 3xx status code
func (*ExportDataForAccountBadRequest) IsServerError ¶
func (o *ExportDataForAccountBadRequest) IsServerError() bool
IsServerError returns true when this export data for account bad request response has a 5xx status code
func (*ExportDataForAccountBadRequest) IsSuccess ¶
func (o *ExportDataForAccountBadRequest) IsSuccess() bool
IsSuccess returns true when this export data for account bad request response has a 2xx status code
func (*ExportDataForAccountBadRequest) String ¶
func (o *ExportDataForAccountBadRequest) String() string
type ExportDataForAccountNotFound ¶
type ExportDataForAccountNotFound struct {
HttpResponse runtime.ClientResponse
}
ExportDataForAccountNotFound describes a response with status code 404, with default header values.
Account not found
func NewExportDataForAccountNotFound ¶
func NewExportDataForAccountNotFound() *ExportDataForAccountNotFound
NewExportDataForAccountNotFound creates a ExportDataForAccountNotFound with default headers values
func (*ExportDataForAccountNotFound) Code ¶
func (o *ExportDataForAccountNotFound) Code() int
Code gets the status code for the export data for account not found response
func (*ExportDataForAccountNotFound) Error ¶
func (o *ExportDataForAccountNotFound) Error() string
func (*ExportDataForAccountNotFound) IsClientError ¶
func (o *ExportDataForAccountNotFound) IsClientError() bool
IsClientError returns true when this export data for account not found response has a 4xx status code
func (*ExportDataForAccountNotFound) IsCode ¶
func (o *ExportDataForAccountNotFound) IsCode(code int) bool
IsCode returns true when this export data for account not found response a status code equal to that given
func (*ExportDataForAccountNotFound) IsRedirect ¶
func (o *ExportDataForAccountNotFound) IsRedirect() bool
IsRedirect returns true when this export data for account not found response has a 3xx status code
func (*ExportDataForAccountNotFound) IsServerError ¶
func (o *ExportDataForAccountNotFound) IsServerError() bool
IsServerError returns true when this export data for account not found response has a 5xx status code
func (*ExportDataForAccountNotFound) IsSuccess ¶
func (o *ExportDataForAccountNotFound) IsSuccess() bool
IsSuccess returns true when this export data for account not found response has a 2xx status code
func (*ExportDataForAccountNotFound) String ¶
func (o *ExportDataForAccountNotFound) String() string
type ExportDataForAccountOK ¶
type ExportDataForAccountOK struct {
HttpResponse runtime.ClientResponse
}
ExportDataForAccountOK describes a response with status code 200, with default header values.
Success
func NewExportDataForAccountOK ¶
func NewExportDataForAccountOK() *ExportDataForAccountOK
NewExportDataForAccountOK creates a ExportDataForAccountOK with default headers values
func (*ExportDataForAccountOK) Code ¶
func (o *ExportDataForAccountOK) Code() int
Code gets the status code for the export data for account o k response
func (*ExportDataForAccountOK) Error ¶
func (o *ExportDataForAccountOK) Error() string
func (*ExportDataForAccountOK) IsClientError ¶
func (o *ExportDataForAccountOK) IsClientError() bool
IsClientError returns true when this export data for account o k response has a 4xx status code
func (*ExportDataForAccountOK) IsCode ¶
func (o *ExportDataForAccountOK) IsCode(code int) bool
IsCode returns true when this export data for account o k response a status code equal to that given
func (*ExportDataForAccountOK) IsRedirect ¶
func (o *ExportDataForAccountOK) IsRedirect() bool
IsRedirect returns true when this export data for account o k response has a 3xx status code
func (*ExportDataForAccountOK) IsServerError ¶
func (o *ExportDataForAccountOK) IsServerError() bool
IsServerError returns true when this export data for account o k response has a 5xx status code
func (*ExportDataForAccountOK) IsSuccess ¶
func (o *ExportDataForAccountOK) IsSuccess() bool
IsSuccess returns true when this export data for account o k response has a 2xx status code
func (*ExportDataForAccountOK) String ¶
func (o *ExportDataForAccountOK) String() string
type ExportDataForAccountParams ¶
type ExportDataForAccountParams struct { // XKillbillComment. XKillbillComment *string // XKillbillCreatedBy. XKillbillCreatedBy string // XKillbillReason. XKillbillReason *string // AccountID. // // Format: uuid AccountID strfmt.UUID 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 }
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 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 NewExportDataForAccountParamsWithContext ¶
func NewExportDataForAccountParamsWithContext(ctx context.Context) *ExportDataForAccountParams
NewExportDataForAccountParamsWithContext creates a new ExportDataForAccountParams object with 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 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 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) SetDefaults ¶
func (o *ExportDataForAccountParams) SetDefaults()
SetDefaults hydrates default values in the export data for account params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ExportDataForAccountParams) WithAccountID(accountID strfmt.UUID) *ExportDataForAccountParams
WithAccountID adds the accountID to the export data for account params
func (*ExportDataForAccountParams) WithContext ¶
func (o *ExportDataForAccountParams) WithContext(ctx context.Context) *ExportDataForAccountParams
WithContext adds the context to the export data for account params
func (*ExportDataForAccountParams) WithDefaults ¶
func (o *ExportDataForAccountParams) WithDefaults() *ExportDataForAccountParams
WithDefaults hydrates default values in the export data for account params (not the query body).
All values with no default are reset to their zero value.
func (*ExportDataForAccountParams) WithHTTPClient ¶
func (o *ExportDataForAccountParams) WithHTTPClient(client *http.Client) *ExportDataForAccountParams
WithHTTPClient adds the HTTPClient to the export data for account params
func (*ExportDataForAccountParams) WithTimeout ¶
func (o *ExportDataForAccountParams) WithTimeout(timeout time.Duration) *ExportDataForAccountParams
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 ¶
func (o *ExportDataForAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 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.