app/interfaces/api/entities/cclf/transfer_claim.rb
module API
module Entities
module CCLF
class TransferClaim < BaseClaim
def bills
data = []
data.push AdaptedTransferFee.represent(object.transfer_fee)
data.push AdaptedMiscFee.represent(object.misc_fees)
data.push AdaptedDisbursement.represent(object.disbursements)
data.push AdaptedExpense.represent(object.expenses)
data.as_json.flat_select { |bill| bill[:bill_type].present? }
end
end
end
end
end