Added notification for Account Approvers when a Cart is submitted for Approval.
The notification is automatically triggered in Cart Services when the cart updates are persisted.
Removed need to send a separate HTTP request to Cart Services to trigger the Cart Rejected notification.
This is now done automatically when the cart updates are persisted.
Introduced TaxCalculationStrategy
and hook points for pricing flow and better support estimated tax calculation
Related changes also made in TaxCommon
Fixed error being surfaced to customer when a notification could not be sent when after a successful Account cart rejection.
Instead, this error is logged since the cart status was successfully updated so the operation should not fail.
PaymentTaxAddressSourceHandler#canHandle
Now determines if the given cart and fulfillment group can be handled purely based on its taxAddressSource
, whether address is valid is shifted into DefaultDelegatingTaxService#canCalculateTaxes
ShippingTaxAddressSourceHandler#canHandle
Now determines if the given cart and fulfillment group can be handled purely based on its taxAddressSource
, whether address is valid is shifted into DefaultDelegatingTaxService#canCalculateTaxes
DefaultDelegatingTaxService#canCalculateTaxes
Now accepts an address that only has stateProvinceRegion
and country
DefaultCartPricingService#applyTaxes
Now takes an additional estimate - boolean
parameter to control whether the tax calculation is going to be estimated