Files
Dena/app/api/v2/entities/bonus.rb
2026-08-13 19:50:53 +03:30

39 lines
696 B
Ruby

# encoding: UTF-8
# frozen_string_literal: true
module API
module V2
module Entities
class Bonus < Base
expose(
:bonus_member_id,
as: :uid,
documentation: {
desc: 'user_uid.',
type: String
}
)
expose(
:amount,
format_with: :decimal,
documentation: {
desc: 'Bonus account',
type: BigDecimal
}
)
expose(
:created_at,
as: :date,
format_with: :iso8601,
documentation: {
desc: 'created date',
type: Date
}
)
end
end
end
end