// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.

package components

type Location struct {
	// The English name of the detected city.
	City *string `json:"city,omitempty"`
	// The English name of the detected continent (North America, Europe, Asia, South America, Africa, Oceania, Antarctica).
	Continent   *string      `json:"continent,omitempty"`
	Coordinates *Coordinates `json:"coordinates,omitempty"`
	// The English name of the detected country.
	Country *string `json:"country,omitempty"`
	// The detected two-letter ISO 3166-1 alpha-2 country code (US, CN, GB, RU, ...).
	CountryCode *string `json:"country_code,omitempty"`
	// The postal code (if applicable) of the detected location.
	PostalCode *string `json:"postal_code,omitempty"`
	// The state or province name of the detected location.
	Province *string `json:"province,omitempty"`
	// The English name of the registered country.
	RegisteredCountry *string `json:"registered_country,omitempty"`
	// The registered country's two-letter ISO 3166-1 alpha-2 country code (US, CN, GB, RU, ...).
	RegisteredCountryCode *string `json:"registered_country_code,omitempty"`
	// The IANA time zone database name of the detected location.
	Timezone *string `json:"timezone,omitempty"`
}

func (o *Location) GetCity() *string {
	if o == nil {
		return nil
	}
	return o.City
}

func (o *Location) GetContinent() *string {
	if o == nil {
		return nil
	}
	return o.Continent
}

func (o *Location) GetCoordinates() *Coordinates {
	if o == nil {
		return nil
	}
	return o.Coordinates
}

func (o *Location) GetCountry() *string {
	if o == nil {
		return nil
	}
	return o.Country
}

func (o *Location) GetCountryCode() *string {
	if o == nil {
		return nil
	}
	return o.CountryCode
}

func (o *Location) GetPostalCode() *string {
	if o == nil {
		return nil
	}
	return o.PostalCode
}

func (o *Location) GetProvince() *string {
	if o == nil {
		return nil
	}
	return o.Province
}

func (o *Location) GetRegisteredCountry() *string {
	if o == nil {
		return nil
	}
	return o.RegisteredCountry
}

func (o *Location) GetRegisteredCountryCode() *string {
	if o == nil {
		return nil
	}
	return o.RegisteredCountryCode
}

func (o *Location) GetTimezone() *string {
	if o == nil {
		return nil
	}
	return o.Timezone
}
