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

kbclient

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

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

Implements killbill default values.

func (KillbillDefaults) KillbillWithProfilingInfo added in v2.2.0

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