/* * Solidarity Mobility API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * API version: 1.0.0 * Generated by: OpenAPI Generator (https://openapi-generator.tech) */ package openapi type JourneySchedule struct { // Passenger pickup datetime as a UNIX UTC timestamp in seconds. PassengerPickupDate float32 `json:"passengerPickupDate"` // Driver departure datetime as a UNIX UTC timestamp in seconds. DriverDepartureDate float32 `json:"driverDepartureDate,omitempty"` // Type of journey. A dynamic journey is happening in real time. Type string `json:"type"` } // AssertJourneyScheduleRequired checks if the required fields are not zero-ed func AssertJourneyScheduleRequired(obj JourneySchedule) error { elements := map[string]interface{}{ "passengerPickupDate": obj.PassengerPickupDate, "type": obj.Type, } for name, el := range elements { if isZero := IsZeroValue(el); isZero { return &RequiredError{Field: name} } } return nil } // AssertJourneyScheduleConstraints checks if the values respects the defined constraints func AssertJourneyScheduleConstraints(obj JourneySchedule) error { return nil }