change allAppliedDiscounts cart field type to Set
add cart calculation functions and tests add custom tariff types