kbclient

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: 25 Imported by: 3 modules, 10 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

type KillBill struct {
	Account *account.Client

	Admin *admin.Client

	Bundle *bundle.Client

	Catalog *catalog.Client

	Credit *credit.Client

	CustomField *custom_field.Client

	Export *export.Client

	Invoice *invoice.Client

	InvoiceItem *invoice_item.Client

	InvoicePayment *invoice_payment.Client

	NodesInfo *nodes_info.Client

	Overdue *overdue.Client

	Payment *payment.Client

	PaymentGateway *payment_gateway.Client

	PaymentMethod *payment_method.Client

	PaymentTransaction *payment_transaction.Client

	PluginInfo *plugin_info.Client

	Security *security.Client

	Subscription *subscription.Client

	Tag *tag.Client

	TagDefinition *tag_definition.Client

	Tenant *tenant.Client

	Usage *usage.Client

	Transport runtime.ClientTransport
	// contains filtered or unexported fields
}

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
	// withStackTrace property
	WithStackTrace *bool
}

Implements killbill default values.

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