./lib/ews/transaction/validator.rb in exact4r-1.1 vs ./lib/ews/transaction/validator.rb in exact4r-1.2
- old
+ new
@@ -62,12 +62,12 @@
append_error(:tax1_amount, "invalid tax1_amount supplied") unless valid_amount?(self.tax1_amount)
append_error(:tax2_amount, "invalid tax2_amount supplied") unless valid_amount?(self.tax2_amount)
# ensure our amounts are within range
append_error(:amount, "amount must be between 0.00 and 99999.99") unless amount_in_range?(self.amount)
- append_error(:surcharge_amount, "amount must be between 0.00 and 99999.99") unless amount_in_range?(self.surcharge_amount)
- append_error(:tax1_amount, "amount must be between 0.00 and 99999.99") unless amount_in_range?(self.tax1_amount)
- append_error(:tax2_amount, "amount must be between 0.00 and 99999.99") unless amount_in_range?(self.tax2_amount)
+ append_error(:surcharge_amount, "surcharge_amount must be between 0.00 and 99999.99") unless amount_in_range?(self.surcharge_amount)
+ append_error(:tax1_amount, "tax1_amount must be between 0.00 and 99999.99") unless amount_in_range?(self.tax1_amount)
+ append_error(:tax2_amount, "tax2_amount must be between 0.00 and 99999.99") unless amount_in_range?(self.tax2_amount)
# ensure our credit card information is valid
append_error(:cc_number, "invalid cc_number supplied") unless valid_card_number?
append_error(:cc_expiry, "invalid cc_expiry supplied") unless valid_expiry_date?
\ No newline at end of file