mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
Commit from m3o/m3o action
This commit is contained in:
@@ -48,11 +48,11 @@ type Country struct {
|
||||
|
||||
type Holiday struct {
|
||||
// the country this holiday occurs in
|
||||
CountryCode string `json:"countryCode"`
|
||||
CountryCode string `json:"country_code"`
|
||||
// date of the holiday in yyyy-mm-dd format
|
||||
Date string `json:"date"`
|
||||
// the local name of the holiday
|
||||
LocalName string `json:"localName"`
|
||||
LocalName string `json:"local_name"`
|
||||
// the name of the holiday in English
|
||||
Name string `json:"name"`
|
||||
// the regions within the country that observe this holiday (if not all of them)
|
||||
@@ -63,7 +63,7 @@ type Holiday struct {
|
||||
|
||||
type ListRequest struct {
|
||||
// The 2 letter country code (as defined in ISO 3166-1 alpha-2)
|
||||
CountryCode string `json:"countryCode"`
|
||||
CountryCode string `json:"country_code"`
|
||||
// The year to list holidays for
|
||||
Year int64 `json:"year,string"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user