lib/onebusaway-sdk/models/stops_for_agency_list_response.rb



# frozen_string_literal: true

module OnebusawaySDK
  module Models
    class StopsForAgencyListResponse < OnebusawaySDK::Models::ResponseWrapper
      # @!attribute limit_exceeded
      #
      #   @return [Boolean]
      required :limit_exceeded, OnebusawaySDK::BooleanModel, api_name: :limitExceeded

      # @!attribute list
      #
      #   @return [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
      required :list, -> { OnebusawaySDK::ArrayOf[OnebusawaySDK::Models::StopsForAgencyListResponse::List] }

      # @!attribute references
      #
      #   @return [OnebusawaySDK::Models::References]
      required :references, -> { OnebusawaySDK::Models::References }

      # @!attribute [r] out_of_range
      #
      #   @return [Boolean, nil]
      optional :out_of_range, OnebusawaySDK::BooleanModel, api_name: :outOfRange

      # @!parse
      #   # @return [Boolean]
      #   attr_writer :out_of_range

      # @!parse
      #   # @param limit_exceeded [Boolean]
      #   # @param list [Array<OnebusawaySDK::Models::StopsForAgencyListResponse::List>]
      #   # @param references [OnebusawaySDK::Models::References]
      #   # @param out_of_range [Boolean]
      #   #
      #   def initialize(limit_exceeded:, list:, references:, out_of_range: nil, **) = super

      # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void

      class List < OnebusawaySDK::BaseModel
        # @!attribute id
        #
        #   @return [String]
        required :id, String

        # @!attribute lat
        #
        #   @return [Float]
        required :lat, Float

        # @!attribute lon
        #
        #   @return [Float]
        required :lon, Float

        # @!attribute name
        #
        #   @return [String]
        required :name, String

        # @!attribute parent
        #
        #   @return [String]
        required :parent, String

        # @!attribute route_ids
        #
        #   @return [Array<String>]
        required :route_ids, OnebusawaySDK::ArrayOf[String], api_name: :routeIds

        # @!attribute static_route_ids
        #
        #   @return [Array<String>]
        required :static_route_ids, OnebusawaySDK::ArrayOf[String], api_name: :staticRouteIds

        # @!attribute [r] code
        #
        #   @return [String, nil]
        optional :code, String

        # @!parse
        #   # @return [String]
        #   attr_writer :code

        # @!attribute [r] direction
        #
        #   @return [String, nil]
        optional :direction, String

        # @!parse
        #   # @return [String]
        #   attr_writer :direction

        # @!attribute [r] location_type
        #
        #   @return [Integer, nil]
        optional :location_type, Integer, api_name: :locationType

        # @!parse
        #   # @return [Integer]
        #   attr_writer :location_type

        # @!attribute [r] wheelchair_boarding
        #
        #   @return [String, nil]
        optional :wheelchair_boarding, String, api_name: :wheelchairBoarding

        # @!parse
        #   # @return [String]
        #   attr_writer :wheelchair_boarding

        # @!parse
        #   # @param id [String]
        #   # @param lat [Float]
        #   # @param lon [Float]
        #   # @param name [String]
        #   # @param parent [String]
        #   # @param route_ids [Array<String>]
        #   # @param static_route_ids [Array<String>]
        #   # @param code [String]
        #   # @param direction [String]
        #   # @param location_type [Integer]
        #   # @param wheelchair_boarding [String]
        #   #
        #   def initialize(
        #     id:,
        #     lat:,
        #     lon:,
        #     name:,
        #     parent:,
        #     route_ids:,
        #     static_route_ids:,
        #     code: nil,
        #     direction: nil,
        #     location_type: nil,
        #     wheelchair_boarding: nil,
        #     **
        #   )
        #     super
        #   end

        # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
      end
    end
  end
end