Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MARK: - GetDriverShiftsRequestable
- struct GetDriverShiftsRequestable: Codable {
- let nextDeliveryTime, nextOpeningTime: NextTime
- let vacation: Vacation
- let deliveryTimeList, takeawayTimeList: [String]
- }
- // MARK: - NextTime
- struct NextTime: Codable {
- let dayOfWeek: Int
- let openHourFrom, openHourTo: String
- let isOutsideOperatingHours, isClosed, isCurrentDay, isPreOrder: Bool
- let canOrder: Bool
- let openingState: String
- let workInterval: WorkInterval
- let operatingTime: OperatingTime
- }
- // MARK: - OperatingTime
- struct OperatingTime: Codable {
- let from, to, asapTime: Date
- }
- // MARK: - WorkInterval
- struct WorkInterval: Codable {
- let from, to: From
- let endsAfterMidnight: Bool
- enum CodingKeys: String, CodingKey {
- case from = "From"
- case to = "To"
- case endsAfterMidnight = "EndsAfterMidnight"
- }
- }
- // MARK: - From
- struct From: Codable {
- let hour, minutes: Int
- enum CodingKeys: String, CodingKey {
- case hour = "Hour"
- case minutes = "Minutes"
- }
- }
- // MARK: - Vacation
- struct Vacation: Codable {
- let currentVacation: JSONNull?
- let vacations: [JSONAny]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement