customers

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Path = "customers"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client

func (*Client) Create

func (c *Client) Create(request CustomerRequest) (*common.IdResponse, error)

func (*Client) CreateWithContext

func (c *Client) CreateWithContext(ctx context.Context, request CustomerRequest) (*common.IdResponse, error)

func (*Client) Delete

func (c *Client) Delete(customerId string) (*common.MetadataResponse, error)

func (*Client) DeleteWithContext

func (c *Client) DeleteWithContext(ctx context.Context, customerId string) (*common.MetadataResponse, error)

func (*Client) Get

func (c *Client) Get(customerId string) (*GetCustomerResponse, error)

func (*Client) GetWithContext

func (c *Client) GetWithContext(ctx context.Context, customerId string) (*GetCustomerResponse, error)

func (*Client) Update

func (c *Client) Update(customerId string, request CustomerRequest) (*common.MetadataResponse, error)

func (*Client) UpdateWithContext

func (c *Client) UpdateWithContext(ctx context.Context, customerId string, request CustomerRequest) (*common.MetadataResponse, error)

type CustomerRequest

type CustomerRequest struct {
	Email       string                 `json:"email,omitempty"`
	Name        string                 `json:"name,omitempty"`
	Phone       *common.Phone          `json:"phone,omitempty"`
	Metadata    map[string]interface{} `json:"metadata,omitempty"`
	DefaultId   string                 `json:"default,omitempty"`
	Instruments []string               `json:"instruments,omitempty"`
}

type GetCustomerResponse

type GetCustomerResponse struct {
	HttpMetadata common.HttpMetadata
	Id           string                              `json:"id,omitempty"`
	Email        string                              `json:"email,omitempty"`
	Default      string                              `json:"default,omitempty"`
	Name         string                              `json:"name,omitempty"`
	Phone        *common.Phone                       `json:"phone,omitempty"`
	Metadata     map[string]interface{}              `json:"metadata,omitempty"`
	Instruments  []instruments.GetInstrumentResponse `json:"instruments,omitempty"`
}

Jump to

Keyboard shortcuts

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