kblib

package
v3.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr return bool pointer from bool value

func GetAccountByKeyOrID

func GetAccountByKeyOrID(ctx context.Context, c *kbclient.KillBill, keyOrID string) (*kbmodel.Account, error)

GetAccountByKeyOrID - get account information command

func GetAccountByKeyOrIDWithBalanceAndCBA

func GetAccountByKeyOrIDWithBalanceAndCBA(ctx context.Context, c *kbclient.KillBill, keyOrID string) (*kbmodel.Account, error)

func GetAccountByKeyOrIDWithMaybeBalance

func GetAccountByKeyOrIDWithMaybeBalance(ctx context.Context, c *kbclient.KillBill, keyOrID string, withBalanceAndCBA bool) (*kbmodel.Account, error)

func GetTagDefinition

func GetTagDefinition(ctx context.Context, c *kbclient.KillBill, idOrName string) (*kbmodel.TagDefinition, error)

GetTagDefinition gets tag definition by name or id

func GetTagDefinitions

func GetTagDefinitions(ctx context.Context, c *kbclient.KillBill) (map[string]*kbmodel.TagDefinition, error)

GetTagDefinitions returns list of tag definitions

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns int64 pointer from int64 value

func IntPtr

func IntPtr(i int) *int

IntPtr returns int pointer from int value

func ParseKeyOrID

func ParseKeyOrID(keyOrID string) (idOrKey string, isID bool)

ParseKeyOrID parses given input string that is either UUID or external key. External keys may be prefixed with +.

func StringPtr

func StringPtr(s string) *string

StringPtr return string pointer from string value

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL