# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.MyBusinessLodging.V1.Model.Housekeeping do
  @moduledoc """
  Conveniences provided in guest units to facilitate an easier, more comfortable stay.

  ## Attributes

  *   `dailyHousekeeping` (*type:* `boolean()`, *default:* `nil`) - Daily housekeeping. Guest units are cleaned by hotel staff daily during guest's stay.
  *   `dailyHousekeepingException` (*type:* `String.t`, *default:* `nil`) - Daily housekeeping exception.
  *   `housekeepingAvailable` (*type:* `boolean()`, *default:* `nil`) - Housekeeping available. Guest units are cleaned by hotel staff during guest's stay. Schedule may vary from daily, weekly, or specific days of the week.
  *   `housekeepingAvailableException` (*type:* `String.t`, *default:* `nil`) - Housekeeping available exception.
  *   `turndownService` (*type:* `boolean()`, *default:* `nil`) - Turndown service. Hotel staff enters guest units to prepare the bed for sleep use. May or may not include some light housekeeping. May or may not include an evening snack or candy. Also known as evening service.
  *   `turndownServiceException` (*type:* `String.t`, *default:* `nil`) - Turndown service exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :dailyHousekeeping => boolean() | nil,
          :dailyHousekeepingException => String.t() | nil,
          :housekeepingAvailable => boolean() | nil,
          :housekeepingAvailableException => String.t() | nil,
          :turndownService => boolean() | nil,
          :turndownServiceException => String.t() | nil
        }

  field(:dailyHousekeeping)
  field(:dailyHousekeepingException)
  field(:housekeepingAvailable)
  field(:housekeepingAvailableException)
  field(:turndownService)
  field(:turndownServiceException)
end

defimpl Poison.Decoder, for: GoogleApi.MyBusinessLodging.V1.Model.Housekeeping do
  def decode(value, options) do
    GoogleApi.MyBusinessLodging.V1.Model.Housekeeping.decode(value, options)
  end
end

defimpl Poison.Encoder, for: GoogleApi.MyBusinessLodging.V1.Model.Housekeeping do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
