lib/kentaa/api/resources/donation.rb in kentaa-api-0.3.1 vs lib/kentaa/api/resources/donation.rb in kentaa-api-0.3.2
- old
+ new
@@ -99,19 +99,27 @@
def transaction_costs
BigDecimal(data[:transaction_costs]) if data[:transaction_costs]
end
+ def start_donation?
+ data[:start_donation]
+ end
+
def registration_fee?
data[:registration_fee]
end
def registration_fee_amount
BigDecimal(data[:registration_fee_amount]) if data[:registration_fee_amount]
end
def total_amount
BigDecimal(data[:total_amount])
+ end
+
+ def receivable_amount
+ BigDecimal(data[:receivable_amount])
end
def countable?
data[:countable]
end