# NOTE: This file is auto generated by OpenAPI Generator 7.22.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule Spatio.Model.ConsumeAgentTaskResponse do
@moduledoc """
Atomic check+increment. Returns the updated counter on success; returns 402 on `trial_expired` and 429 on `daily_limit_exceeded` (the body in error cases is the `ApiError` envelope).
"""
@derive JSON.Encoder
defstruct [
:allowed,
:task_count,
:daily_limit,
:trial_ends_at,
:paid
]
@type t :: %__MODULE__{
:allowed => boolean(),
:task_count => integer() | nil,
:daily_limit => integer() | nil,
:trial_ends_at => DateTime.t | nil,
:paid => boolean() | nil
}
def decode(value) do
value
end
end