kbclient

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 25 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KillBill

KillBill is a client for kill bill

func New

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

New creates a new kill bill client The following snippet provides creating killbill client with basic auth.

	   trp := httptransport.New("127.0.0.1:8080" /*host*/, "" /*basePath*/, nil /*schemes*/)
	   // Add missing handler. OpenAPI runtime doesn't have this by default
	   trp.Producers["text/xml"] = runtime.TextProducer()
	   // Set tro true to print http/debug logs
	   trp.Debug = enableDebug
	   // Setup basic auth
	   authWriter := httptransport.BasicAuth("admin", "password")
	   client := kbclient.New(trp, strfmt.Default)
    // Use client
    client.Accounts.GetAccount(...)

func (*KillBill) Defaults

func (c *KillBill) Defaults() KillbillDefaults

Defaults returns killbill defaults

func (*KillBill) SetDefaults

func (c *KillBill) SetDefaults(defaults KillbillDefaults)

SetDefaults sets killbill defaults

func (*KillBill) SetTransport

func (c *KillBill) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client and all its subresources

type KillbillDefaults

type KillbillDefaults struct {
	// XKillbillCreatedBy property
	CreatedBy *string
	// XKillbillComment property
	Comment *string
	// XKillbillReason property
	Reason *string
	// withProfilingInfo property
	WithProfilingInfo *string
	// withStackTrace property
	WithStackTrace *bool
}

Implements killbill default values.

func (KillbillDefaults) KillbillWithProfilingInfo

func (d KillbillDefaults) KillbillWithProfilingInfo() *string

Default WithProfilingInfo. If not set explicitly in params, this will be used.

func (KillbillDefaults) KillbillWithStackTrace

func (d KillbillDefaults) KillbillWithStackTrace() *bool

Default WithStackTrace. If not set explicitly in params, this will be used.

func (KillbillDefaults) XKillbillComment

func (d KillbillDefaults) XKillbillComment() *string

Default Comment. If not set explicitly in params, this will be used.

func (KillbillDefaults) XKillbillCreatedBy

func (d KillbillDefaults) XKillbillCreatedBy() *string

Default CreatedBy. If not set explicitly in params, this will be used.

func (KillbillDefaults) XKillbillReason

func (d KillbillDefaults) XKillbillReason() *string

Default Reason. If not set explicitly in params, this will be used.

type TransportConfig

type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}

TransportConfig contains the transport related info, found in the meta section of the spec file.

func (*TransportConfig) WithBasePath

func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig

WithBasePath overrides the default basePath, provided by the meta section of the spec file.

func (*TransportConfig) WithHost

func (cfg *TransportConfig) WithHost(host string) *TransportConfig

WithHost overrides the default host, provided by the meta section of the spec file.

func (*TransportConfig) WithSchemes

func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig

WithSchemes overrides the default schemes, provided by the meta section of the spec file.

Jump to

Keyboard shortcuts

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