Initial commit
This commit is contained in:
16
app/api/v2/management/entities/balance.rb
Normal file
16
app/api/v2/management/entities/balance.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
# encoding: UTF-8
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API
|
||||
module V2
|
||||
module Management
|
||||
module Entities
|
||||
class Balance < Base
|
||||
expose(:uid, documentation: { type: String, desc: 'The shared user ID.' }) { |w| w.member.uid }
|
||||
expose(:balance, documentation: { type: String, desc: 'The account balance.' }, format_with: :decimal)
|
||||
expose(:locked, documentation: { type: String, desc: 'The locked account balance.' }, format_with: :decimal)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user