# 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.SustainableSourcing do
  @moduledoc """
  Sustainable sourcing practices implemented at the hotel.

  ## Attributes

  *   `ecoFriendlyToiletries` (*type:* `boolean()`, *default:* `nil`) - Eco friendly toiletries. Soap, shampoo, lotion, and other toiletries provided for guests have a nationally or internationally recognized sustainability certification, such as USDA Organic, EU Organic, or cruelty-free.
  *   `ecoFriendlyToiletriesException` (*type:* `String.t`, *default:* `nil`) - Eco friendly toiletries exception.
  *   `locallySourcedFoodAndBeverages` (*type:* `boolean()`, *default:* `nil`) - Locally sourced food and beverages. Property sources locally in order to lower the environmental footprint from reduced transportation and to stimulate the local economy. Products produced less than 62 miles from the establishment are normally considered as locally produced.
  *   `locallySourcedFoodAndBeveragesException` (*type:* `String.t`, *default:* `nil`) - Locally sourced food and beverages exception.
  *   `organicCageFreeEggs` (*type:* `boolean()`, *default:* `nil`) - Organic cage free eggs. The property sources 100% certified organic and cage-free eggs (shell, liquid, and egg products). Cage-free means hens are able to walk, spread their wings and lay their eggs in nests).
  *   `organicCageFreeEggsException` (*type:* `String.t`, *default:* `nil`) - Organic cage free eggs exception.
  *   `organicFoodAndBeverages` (*type:* `boolean()`, *default:* `nil`) - Organic food and beverages. At least 25% of food and beverages, by spend, are certified organic. Organic means products that are certified to one of the organic standard listed in the IFOAM family of standards. Qualifying certifications include USDA Organic and EU Organic, among others.
  *   `organicFoodAndBeveragesException` (*type:* `String.t`, *default:* `nil`) - Organic food and beverages exception.
  *   `responsiblePurchasingPolicy` (*type:* `boolean()`, *default:* `nil`) - Responsible purchasing policy. The property has a responsible procurement policy in place. Responsible means integration of social, ethical, and/or environmental performance factors into the procurement process when selecting suppliers.
  *   `responsiblePurchasingPolicyException` (*type:* `String.t`, *default:* `nil`) - Responsible purchasing policy exception.
  *   `responsiblySourcesSeafood` (*type:* `boolean()`, *default:* `nil`) - Responsibly sources seafood. The property does not source seafood from the Monterey Bay Aquarium Seafood Watch "avoid" list, and must sustainably source seafood listed as "good alternative," "eco-certified," and "best choice". The property has a policy outlining a commitment to source Marine Stewardship Council (MSC) and/or Aquaculture Stewardship Council (ASC) Chain of Custody certified seafood.
  *   `responsiblySourcesSeafoodException` (*type:* `String.t`, *default:* `nil`) - Responsibly sources seafood exception.
  *   `veganMeals` (*type:* `boolean()`, *default:* `nil`) - Vegan meals. The property provides vegan menu options for guests. Vegan food does not contain animal products or byproducts.
  *   `veganMealsException` (*type:* `String.t`, *default:* `nil`) - Vegan meals exception.
  *   `vegetarianMeals` (*type:* `boolean()`, *default:* `nil`) - Vegetarian meals. The property provides vegetarian menu options for guests. Vegetarian food does not contain meat, poultry, fish, or seafood.
  *   `vegetarianMealsException` (*type:* `String.t`, *default:* `nil`) - Vegetarian meals exception.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :ecoFriendlyToiletries => boolean() | nil,
          :ecoFriendlyToiletriesException => String.t() | nil,
          :locallySourcedFoodAndBeverages => boolean() | nil,
          :locallySourcedFoodAndBeveragesException => String.t() | nil,
          :organicCageFreeEggs => boolean() | nil,
          :organicCageFreeEggsException => String.t() | nil,
          :organicFoodAndBeverages => boolean() | nil,
          :organicFoodAndBeveragesException => String.t() | nil,
          :responsiblePurchasingPolicy => boolean() | nil,
          :responsiblePurchasingPolicyException => String.t() | nil,
          :responsiblySourcesSeafood => boolean() | nil,
          :responsiblySourcesSeafoodException => String.t() | nil,
          :veganMeals => boolean() | nil,
          :veganMealsException => String.t() | nil,
          :vegetarianMeals => boolean() | nil,
          :vegetarianMealsException => String.t() | nil
        }

  field(:ecoFriendlyToiletries)
  field(:ecoFriendlyToiletriesException)
  field(:locallySourcedFoodAndBeverages)
  field(:locallySourcedFoodAndBeveragesException)
  field(:organicCageFreeEggs)
  field(:organicCageFreeEggsException)
  field(:organicFoodAndBeverages)
  field(:organicFoodAndBeveragesException)
  field(:responsiblePurchasingPolicy)
  field(:responsiblePurchasingPolicyException)
  field(:responsiblySourcesSeafood)
  field(:responsiblySourcesSeafoodException)
  field(:veganMeals)
  field(:veganMealsException)
  field(:vegetarianMeals)
  field(:vegetarianMealsException)
end

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

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