# 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.FirebaseDynamicLinks.V1.Model.GetIosReopenAttributionRequest do
  @moduledoc """
  Request for iSDK to get reopen attribution for app universal link open deeplinking. This endpoint is meant for only iOS requests.

  ## Attributes

  *   `bundleId` (*type:* `String.t`, *default:* `nil`) - APP bundle ID.
  *   `requestedLink` (*type:* `String.t`, *default:* `nil`) - FDL link to be verified from an app universal link open. The FDL link can be one of: 1) short FDL. e.g. .page.link/, or 2) long FDL. e.g. .page.link/?{query params}, or 3) Invite FDL. e.g. .page.link/i/
  *   `sdkVersion` (*type:* `String.t`, *default:* `nil`) - Google SDK version. Version takes the form "$major.$minor.$patch"
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :bundleId => String.t() | nil,
          :requestedLink => String.t() | nil,
          :sdkVersion => String.t() | nil
        }

  field(:bundleId)
  field(:requestedLink)
  field(:sdkVersion)
end

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

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