customers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 1

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 added in v1.0.0

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

func (*Client) Delete added in v1.0.0

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

func (*Client) Get added in v1.0.0

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

func (*Client) Update

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

type CustomerRequest added in v1.0.0

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 added in v1.0.0

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