partner_accounts

package
v0.0.0-...-421306c Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteChildAccount

func DeleteChildAccount(c messagebird.Client, id string) error

Types

type AccessKey

type AccessKey struct {
	ID   string
	Key  string
	Mode string
}

type Account

type Account struct {
	ID                 int
	Name               string
	AccessKeys         []*AccessKey
	SigningKey         string
	InvoiceAggregation bool
}

func CreateChildAccount

func CreateChildAccount(c messagebird.Client, name string) (*Account, error)

func ReadChildAccount

func ReadChildAccount(c messagebird.Client, id string) (*Account, error)

func UpdateChildAccount

func UpdateChildAccount(c messagebird.Client, id, name string) (*Account, error)

type Accounts

type Accounts []Account

func ListChildAccount

func ListChildAccount(c messagebird.Client) (*Accounts, error)

ListChildAccount fetch all the Child Accounts

type ErrorResponse

type ErrorResponse struct {
	Type, Title, Detail string
}

func (ErrorResponse) Error

func (e ErrorResponse) Error() string

Jump to

Keyboard shortcuts

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