Added type validation to OrderValidator class. Uses errorarray/ValidationException paradigm.
Merge branch 'develop' of https://github.com/sveawebpay/php-integration into develop
Changed to explicit class checking instead of using else when adding itemFeeObjects and itemDiscountObjects to order object.
fixedDiscount on an order including several different tax rate items now correctly splits discount into several rows, one for each tax rate. (INTG-279)
Removed leftover debug statements.
Validation checks for zero or all three vat attributes in OrderRow items.
FixedDiscount now accepts either only ->setAmountIncVat, which splits the discount amount across all tax rates present in order, or two out of three of setAmountIncVat, setAmountExVat and setVatPercent, which in turn honours the specified discount tax rate. (INTG-278)
Now correctly handles tax calculations on WebPayItems with price of zero and no tax rate given.
fixed typos
Added some to documentation on GetPaymentMethods()
Adds support for relative discounts, with correct vat calculations. Also adds tests for vat calculation on order items specified by other means than exvat+vatpercent.
removed leftover print_r statements
Version name
version in docs
Merge branch 'release/1.4.0'