mirror of
https://github.com/retailcrm/api-client-go.git
synced 2024-11-22 04:46:03 +03:00
Adding functionality from recent updates to the library
This commit is contained in:
parent
ab648cd06a
commit
583362bfe3
@ -2305,7 +2305,6 @@ func (c *Client) Currencies() (CurrencyResponse, int, error) {
|
|||||||
|
|
||||||
data, status, err := c.GetRequest("/reference/currencies")
|
data, status, err := c.GetRequest("/reference/currencies")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
return resp, status, err
|
return resp, status, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
response.go
12
response.go
@ -604,21 +604,21 @@ type ClientIDResponse struct {
|
|||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SourcesResponse type
|
// SourcesResponse type.
|
||||||
type SourcesResponse struct {
|
type SourcesResponse struct {
|
||||||
Success bool `json:"success"`
|
|
||||||
FailedSources []Source `json:"failedSources,omitempty"`
|
|
||||||
ErrorMsg string `json:"errorMsg,omitempty"`
|
ErrorMsg string `json:"errorMsg,omitempty"`
|
||||||
Errors map[string]string `json:"errors,omitempty"`
|
Errors map[string]string `json:"errors,omitempty"`
|
||||||
|
FailedSources []Source `json:"failed_sources,omitempty"`
|
||||||
|
Success bool `json:"success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//CurrencyResponse type
|
// CurrencyResponse type.
|
||||||
type CurrencyResponse struct {
|
type CurrencyResponse struct {
|
||||||
Success bool `json:"success"`
|
|
||||||
Currencies []Currency `json:"currencies,omitempty"`
|
Currencies []Currency `json:"currencies,omitempty"`
|
||||||
|
Success bool `json:"success"`
|
||||||
}
|
}
|
||||||
|
|
||||||
//CurrencyCreateResponse type
|
// CurrencyCreateResponse type.
|
||||||
type CurrencyCreateResponse struct {
|
type CurrencyCreateResponse struct {
|
||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
ID int `json:"id,omitempty"`
|
ID int `json:"id,omitempty"`
|
||||||
|
2
types.go
2
types.go
@ -70,9 +70,9 @@ type Source struct {
|
|||||||
Keyword string `json:"keyword,omitempty"`
|
Keyword string `json:"keyword,omitempty"`
|
||||||
Content string `json:"content,omitempty"`
|
Content string `json:"content,omitempty"`
|
||||||
ClientID string `json:"client_id,omitempty"`
|
ClientID string `json:"client_id,omitempty"`
|
||||||
|
Site string `json:"site,omitempty"`
|
||||||
Order LinkedOrder `json:"order,omitempty"`
|
Order LinkedOrder `json:"order,omitempty"`
|
||||||
Customer SerializedEntityCustomer `json:"customer,omitempty"`
|
Customer SerializedEntityCustomer `json:"customer,omitempty"`
|
||||||
Site string `json:"site,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Contragent type.
|
// Contragent type.
|
||||||
|
Loading…
Reference in New Issue
Block a user