add methods for brands
This commit is contained in:
		@@ -27,6 +27,7 @@ type Client struct {
 | 
			
		||||
	categories    *Categories
 | 
			
		||||
	polygons      *Polygons
 | 
			
		||||
	invoices      *Invoices
 | 
			
		||||
	brands        *Brands
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c Client) Analytics() *Analytics {
 | 
			
		||||
@@ -85,6 +86,10 @@ func (c Client) Invoices() *Invoices {
 | 
			
		||||
	return c.invoices
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (c Client) Brands() *Brands {
 | 
			
		||||
	return c.brands
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func NewClient(clientId, apiKey string) *Client {
 | 
			
		||||
	coreClient := core.NewClient(DefaultAPIBaseUrl, map[string]string{
 | 
			
		||||
		"Client-Id": clientId,
 | 
			
		||||
@@ -107,6 +112,7 @@ func NewClient(clientId, apiKey string) *Client {
 | 
			
		||||
		categories:    &Categories{client: coreClient},
 | 
			
		||||
		polygons:      &Polygons{client: coreClient},
 | 
			
		||||
		invoices:      &Invoices{client: coreClient},
 | 
			
		||||
		brands:        &Brands{client: coreClient},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -129,5 +135,6 @@ func NewMockClient(handler http.HandlerFunc) *Client {
 | 
			
		||||
		categories:    &Categories{client: coreClient},
 | 
			
		||||
		polygons:      &Polygons{client: coreClient},
 | 
			
		||||
		invoices:      &Invoices{client: coreClient},
 | 
			
		||||
		brands:        &Brands{client: coreClient},
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user