# This file was generated by the Julia Swagger Code Generator
# Do not modify this file directly. Modify the swagger specification instead.


mutable struct RateCardQueryParameters <: SwaggerModel
    OfferDurableId::Any # spec type: Union{ Nothing, String } # spec name: OfferDurableId
    Currency::Any # spec type: Union{ Nothing, String } # spec name: Currency
    Locale::Any # spec type: Union{ Nothing, String } # spec name: Locale
    RegionInfo::Any # spec type: Union{ Nothing, String } # spec name: RegionInfo

    function RateCardQueryParameters(;OfferDurableId=nothing, Currency=nothing, Locale=nothing, RegionInfo=nothing)
        o = new()
        validate_property(RateCardQueryParameters, Symbol("OfferDurableId"), OfferDurableId)
        setfield!(o, Symbol("OfferDurableId"), OfferDurableId)
        validate_property(RateCardQueryParameters, Symbol("Currency"), Currency)
        setfield!(o, Symbol("Currency"), Currency)
        validate_property(RateCardQueryParameters, Symbol("Locale"), Locale)
        setfield!(o, Symbol("Locale"), Locale)
        validate_property(RateCardQueryParameters, Symbol("RegionInfo"), RegionInfo)
        setfield!(o, Symbol("RegionInfo"), RegionInfo)
        o
    end
end # type RateCardQueryParameters

const _property_map_RateCardQueryParameters = Dict{Symbol,Symbol}(Symbol("OfferDurableId")=>Symbol("OfferDurableId"), Symbol("Currency")=>Symbol("Currency"), Symbol("Locale")=>Symbol("Locale"), Symbol("RegionInfo")=>Symbol("RegionInfo"))
const _property_types_RateCardQueryParameters = Dict{Symbol,String}(Symbol("OfferDurableId")=>"String", Symbol("Currency")=>"String", Symbol("Locale")=>"String", Symbol("RegionInfo")=>"String")
Base.propertynames(::Type{ RateCardQueryParameters }) = collect(keys(_property_map_RateCardQueryParameters))
Swagger.property_type(::Type{ RateCardQueryParameters }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_RateCardQueryParameters[name]))}
Swagger.field_name(::Type{ RateCardQueryParameters }, property_name::Symbol) =  _property_map_RateCardQueryParameters[property_name]

function check_required(o::RateCardQueryParameters)
    (getproperty(o, Symbol("OfferDurableId")) === nothing) && (return false)
    (getproperty(o, Symbol("Currency")) === nothing) && (return false)
    (getproperty(o, Symbol("Locale")) === nothing) && (return false)
    (getproperty(o, Symbol("RegionInfo")) === nothing) && (return false)
    true
end

function validate_property(::Type{ RateCardQueryParameters }, name::Symbol, val)
    if name === Symbol("OfferDurableId")
    end
end
