Skip to content

Commit

Permalink
fix(core): proper camelcased names in exchange json
Browse files Browse the repository at this point in the history
  • Loading branch information
kockicica committed Dec 1, 2021
1 parent 903c1a1 commit ba1cc7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/api/exchange.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ Response:
"countryNameSerLat": "EMU",
"countryNameEng": "EMU",
"unit": 1,
"BuyingRate": 100.6092,
"MiddleRate": 0,
"buyingRate": 100.6092,
"middleRate": 0,
"sellingRate": 101.2146,
"fixingRate": 0
}
Expand Down
4 changes: 2 additions & 2 deletions nbs/exchange/GetExchangeRateByCurrency/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ type ExchangeRateDataSetExchangeRate struct {
CountryNameSerLat string `xml:"CountryNameSerLat" json:"countryNameSerLat"`
CountryNameEng string `xml:"CountryNameEng" json:"countryNameEng"`
Unit int `xml:"Unit" json:"unit"`
BuyingRate *float64 `xml:"BuyingRate" json:"BuyingRate"`
MiddleRate *float64 `xml:"MiddleRate" json:"MiddleRate"`
BuyingRate *float64 `xml:"BuyingRate" json:"buyingRate"`
MiddleRate *float64 `xml:"MiddleRate" json:"middleRate"`
SellingRate *float64 `xml:"SellingRate" json:"sellingRate"`
FixingRate *float64 `xml:"FixingRate" json:"fixingRate"`
}
Expand Down

0 comments on commit ba1cc7c

Please sign in to comment.