Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the Square API client.
func (*Client) DeleteCatalogObject ¶
DeleteCatalogObject deletes a Square CatalogObject with the specified ID.
func (*Client) RetrieveCatalogObject ¶
func (c *Client) RetrieveCatalogObject(id string) (*squaremodel.CatalogObject, error)
RetrieveCatalogObject retrieves a Square CatalogObject.
func (*Client) UpsertCatalogObject ¶
func (c *Client) UpsertCatalogObject(obj *squaremodel.CatalogObject) (*squaremodel.CatalogObject, error)
UpsertCatalogObject creates or updates a Square CatalogObject.
type SquareAPI ¶
type SquareAPI interface { DeleteCatalogObject(id string) ([]string, error) RetrieveCatalogObject(id string) (*squaremodel.CatalogObject, error) UpsertCatalogObject(*squaremodel.CatalogObject) (*squaremodel.CatalogObject, error) }
SquareAPI defines an interface for Square's REST API.
Click to show internal directories.
Click to hide internal directories.