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.ClientService Admin admin.ClientService Bundle bundle.ClientService Catalog catalog.ClientService Credit credit.ClientService CustomField custom_field.ClientService Export export.ClientService Invoice invoice.ClientService InvoiceItem invoice_item.ClientService InvoicePayment invoice_payment.ClientService NodesInfo nodes_info.ClientService Overdue overdue.ClientService Payment payment.ClientService PaymentGateway payment_gateway.ClientService PaymentMethod payment_method.ClientService PaymentTransaction payment_transaction.ClientService PluginInfo plugin_info.ClientService Security securityops.ClientService Subscription subscription.ClientService Tag tag.ClientService TagDefinition tag_definition.ClientService Tenant tenant.ClientService Usage usage.ClientService 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 ¶
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 ¶
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.