# This file was generated by the Julia OpenAPI Code Generator
# Do not modify this file directly. Modify the OpenAPI specification instead.
@doc raw"""ClaimActionResponse
ClaimActionResponse(;
action_id=nothing,
success=false,
)
- action_id::Int64
- success::Bool
"""
Base.@kwdef mutable struct ClaimActionResponse <: OpenAPI.APIModel
action_id::Union{Nothing, Int64} = nothing
success::Union{Nothing, Bool} = false
function ClaimActionResponse(action_id, success, )
o = new(action_id, success, )
OpenAPI.validate_properties(o)
return o
end
end # type ClaimActionResponse
const _property_types_ClaimActionResponse = Dict{Symbol,String}(Symbol("action_id")=>"Int64", Symbol("success")=>"Bool", )
OpenAPI.property_type(::Type{ ClaimActionResponse }, name::Symbol) = Union{Nothing,eval(Base.Meta.parse(_property_types_ClaimActionResponse[name]))}
function OpenAPI.check_required(o::ClaimActionResponse)
o.action_id === nothing && (return false)
true
end
function OpenAPI.validate_properties(o::ClaimActionResponse)
OpenAPI.validate_property(ClaimActionResponse, Symbol("action_id"), o.action_id)
OpenAPI.validate_property(ClaimActionResponse, Symbol("success"), o.success)
end
function OpenAPI.validate_property(::Type{ ClaimActionResponse }, name::Symbol, val)
if name === Symbol("action_id")
OpenAPI.validate_param(name, "ClaimActionResponse", :format, val, "int64")
end
end