Adding functionality from recent updates to the library

This commit is contained in:
Danila 2023-09-06 07:40:46 +03:00
parent ab648cd06a
commit 583362bfe3
3 changed files with 7 additions and 8 deletions

View File

@ -2305,7 +2305,6 @@ func (c *Client) Currencies() (CurrencyResponse, int, error) {
data, status, err := c.GetRequest("/reference/currencies")
if err != nil {
return resp, status, err
}

View File

@ -604,21 +604,21 @@ type ClientIDResponse struct {
Success bool `json:"success"`
}
// SourcesResponse type
// SourcesResponse type.
type SourcesResponse struct {
Success bool `json:"success"`
FailedSources []Source `json:"failedSources,omitempty"`
ErrorMsg string `json:"errorMsg,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 {
Success bool `json:"success"`
Currencies []Currency `json:"currencies,omitempty"`
Success bool `json:"success"`
}
//CurrencyCreateResponse type
// CurrencyCreateResponse type.
type CurrencyCreateResponse struct {
Success bool `json:"success"`
ID int `json:"id,omitempty"`

View File

@ -70,9 +70,9 @@ type Source struct {
Keyword string `json:"keyword,omitempty"`
Content string `json:"content,omitempty"`
ClientID string `json:"client_id,omitempty"`
Site string `json:"site,omitempty"`
Order LinkedOrder `json:"order,omitempty"`
Customer SerializedEntityCustomer `json:"customer,omitempty"`
Site string `json:"site,omitempty"`
}
// Contragent type.