Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default kill bill HTTP client.
var DefaultSchemes = []string{"http"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
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
}
KillBill is a client for kill bill
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *KillBill
New creates a new kill bill client
func NewHTTPClient ¶
NewHTTPClient creates a new kill bill HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *KillBill
NewHTTPClientWithConfig creates a new kill bill HTTP client, using a customizable transport config.
func (*KillBill) SetTransport ¶
func (c *KillBill) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from 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.