Module: MITS::V3_0::Mapper::FeesMapper

Included in:
MITS::V3_0::Mapper, MITS::V4_1::Mapper
Defined in:
lib/mits/v3.0/mapper/fees_mapper.rb

Instance Method Summary collapse

Instance Method Details

#fees(tag, entity = Fees) ⇒ Object



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/mits/v3.0/mapper/fees_mapper.rb', line 5

def fees(tag, entity = Fees)
  entity.new(admin_fee:               try(tag[:AdminFee], :to_f),
             application_fee:         try(tag[:ApplicationFee], :to_f),
             broker_fee:              try(tag[:BrokerFee], :to_f),
             late_fee_per_day:        try(tag[:LateFeePerDay], :to_f),
             late_min_fee:            try(tag[:LateMinFee], :to_f),
             late_percent:            try(tag[:LatePercent], :to_f),
             late_type:               tag[:LateType],
             non_refundable_hold_fee: try(tag[:NonRefundableHoldFee], :to_f),
             prorate_type:            tag[:ProrateType])
end