Versions in this module Expand all Collapse all v3 v3.1.0 Mar 12, 2023 v3.0.0 Mar 10, 2023 Changes in this version + const ACCOUNT_ALREADY_EXISTS + const ACCOUNT_DOES_NOT_EXIST_FOR_KEY + const AUTO_INVOICING_DRAFT + const AUTO_INVOICING_OFF + const AUTO_INVOICING_REUSE_DRAFT + const AUTO_PAY_OFF + const Comment + const CreatedBy + const DebugHttpRequests + const KB_PROFILING_RESP + const MANUAL_PAY + const OVERDUE_ENFORCEMENT_OFF + const PARTNER + const SUB_CREATE_BP_EXISTS + const TEST + const WRITTEN_OFF + var NullDate = strfmt.Date(time.Time{}) + func CreateAuthInfo(apiKey, apiSecret, user, pwd string) runtime.ClientAuthInfoWriter + func GetProfilingRes(pctx context.Context) string + func IsCriticalError(err error, kbCodeIgnore int, ignrDup bool, logger Logger) error + func NewClientTransport(url string) *transport.Runtime + func NewKillbillClient(trp *transport.Runtime, apiKey, apiSecret, user, pwd string) *kbclient.KillBill + func WithProfilingInfo(parent context.Context, profInfo string) context.Context + type Config struct + ApiKey string + ApiSecret string + Password string + TimeoutSec int64 + Url string + Username string + func (k *Config) GetApiKey() string + func (k *Config) GetApiSecret() string + func (k *Config) GetPassword() string + func (k *Config) GetTimeout() time.Duration + func (k *Config) GetUrl() string + func (k *Config) GetUsername() string + type KillbillConfig interface + GetApiKey func() string + GetApiSecret func() string + GetPassword func() string + GetTimeout func() time.Duration + GetUrl func() string + GetUsername func() string + type KillbillPolicy string + const EOT + const IMM + const NONE + const SOT + type Logger interface + LogError func(err error, format string, a ...interface{}) + type PlanDescr struct + Bcd int + ExtKey string + PlanId string + type ProfCtxValue struct + type RawClient struct + ApiKey string + ApiSecret string + CrossTenantClient *kbclient.KillBill + TenantClient *kbclient.KillBill + Timeout time.Duration + Trp *transport.Runtime + func NewKBClient(conf KillbillConfig) *RawClient + func (cli *RawClient) AddAccountCustomFields(ctx context.Context, accountId strfmt.UUID, fields map[string]string) error + func (cli *RawClient) AddAccountTags(ctx context.Context, accountId strfmt.UUID, tags ...string) error + func (cli *RawClient) AddSubscriptionCustomFields(ctx context.Context, subscriptionId strfmt.UUID, fields map[string]string) error + func (cli *RawClient) CancelSubscription(ctx context.Context, subscriptionId strfmt.UUID, date *strfmt.Date) error + func (cli *RawClient) ChangePlan(ctx context.Context, subscriptionId strfmt.UUID, ...) error + func (cli *RawClient) CommitInvoice(ctx context.Context, invoiceID strfmt.UUID) (*kbmodel.Invoice, error) + func (cli *RawClient) CreateAccount(ctx context.Context, extKey string, currency string, locale string, bcd int32) (strfmt.UUID, error) + func (cli *RawClient) CreateAccountFromBody(ctx context.Context, body *kbmodel.Account) (strfmt.UUID, error) + func (cli *RawClient) CreateSubscription(ctx context.Context, accountId strfmt.UUID, extKey string, ...) (strfmt.UUID, error) + func (cli *RawClient) CreateSubscriptions(pctx context.Context, accountId strfmt.UUID, date *strfmt.Date, ...) ([]*kbmodel.Bundle, error) + func (cli *RawClient) CreateTenant(ctx context.Context, apiKey string, apiSecret string, extKey string) (*strfmt.UUID, error) + func (cli *RawClient) DeleteAccountTags(ctx context.Context, accountId strfmt.UUID, tags ...string) error + func (cli *RawClient) GetAccount(ctx context.Context, accountId strfmt.UUID, withBalance bool) (*kbmodel.Account, error) + func (cli *RawClient) GetAccountByKey(ctx context.Context, externalKey string) (*kbmodel.Account, error) + func (cli *RawClient) GetAccountTags(ctx context.Context, accountId strfmt.UUID) ([]*kbmodel.Tag, error) + func (cli *RawClient) GetAllInvoices(ctx context.Context, accountID strfmt.UUID) ([]*kbmodel.Invoice, error) + func (cli *RawClient) GetBundle(ctx context.Context, bundleId strfmt.UUID) (*kbmodel.Bundle, error) + func (cli *RawClient) GetBundleByKey(ctx context.Context, extKey string) (*kbmodel.Bundle, error) + func (cli *RawClient) GetInvoice(ctx context.Context, invoiceID strfmt.UUID) (*kbmodel.Invoice, error) + func (cli *RawClient) GetInvoicesBetweenDates(ctx context.Context, accountID strfmt.UUID, from *strfmt.Date, to *strfmt.Date) ([]*kbmodel.Invoice, error) + func (cli *RawClient) GetMonthlyInvoice(ctx context.Context, accountID strfmt.UUID, targetDt strfmt.Date) (*kbmodel.Invoice, error) + func (cli *RawClient) GetSubscription(ctx context.Context, subId strfmt.UUID) (*kbmodel.Subscription, error) + func (cli *RawClient) GetSubscriptionByKey(ctx context.Context, extKey string) (*kbmodel.Subscription, error) + func (cli *RawClient) GetTenant(ctx context.Context, apiKey string) (*strfmt.UUID, error) + func (cli *RawClient) InvalidateTenantCache(ctx context.Context) error + func (cli *RawClient) IsInvoiceWrittenOff(ctx context.Context, invoiceID strfmt.UUID) (bool, string, error) + func (cli *RawClient) PauseSubscription(ctx context.Context, subscriptionId strfmt.UUID, service string, state string, ...) error + func (cli *RawClient) PayInvoice(ctx context.Context, invoiceID strfmt.UUID, accountID strfmt.UUID, ...) error + func (cli *RawClient) ResumeSubscription(ctx context.Context, subscriptionId strfmt.UUID, service string, state string, ...) error + func (cli *RawClient) TransferBundle(ctx context.Context, bundleId strfmt.UUID, destAccountId strfmt.UUID, ...) (strfmt.UUID, error) + func (cli *RawClient) TriggerDryRunCancelSubscription(ctx context.Context, accountId strfmt.UUID, bundleId strfmt.UUID, ...) (*kbmodel.Invoice, error) + func (cli *RawClient) TriggerDryRunChangePlan(ctx context.Context, accountId strfmt.UUID, bundleId strfmt.UUID, ...) (*kbmodel.Invoice, error) + func (cli *RawClient) TriggerDryRunCreateSubscription(ctx context.Context, accountId strfmt.UUID, product string, priceList string, ...) (*kbmodel.Invoice, error) + func (cli *RawClient) TriggerTargetInvoice(ctx context.Context, accountID strfmt.UUID, targetDate strfmt.Date) (*kbmodel.Invoice, error) + func (cli *RawClient) UpdateSubscriptionBCD(ctx context.Context, subscriptionId strfmt.UUID, bcd int, ...) error + func (cli *RawClient) UploadCatalogXML(ctx context.Context, path string) error + func (cli *RawClient) VoidInvoice(ctx context.Context, invoiceID strfmt.UUID) (*kbmodel.Invoice, error) + func (cli *RawClient) WriteOffInvoice(ctx context.Context, invoiceID strfmt.UUID, reason string) error