Class TaxDetailRoundingPayload

    • Constructor Detail

      • TaxDetailRoundingPayload

        public TaxDetailRoundingPayload()
    • Method Detail

      • init

        public void init​(@NonNull @NonNull
                         @NonNull List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments,
                         SplitRoundingHelper roundingHelper)
        Initializes this tax rounding payload
        Parameters:
        fulfillments - A non-empty list of fulfillments.
        roundingHelper -
      • performRoundingAndSetValues

        public void performRoundingAndSetValues()
        Performs tax detail rounding and sets the appropriate values on the order fulfillments. Rounding is complete after this step.
      • getTaxCalculatedOrZero

        protected javax.money.MonetaryAmount getTaxCalculatedOrZero​(@Nullable
                                                                    com.broadleafcommerce.order.client.domain.OrderFulfillmentItemTaxDetail taxDetail)
      • getCurrency

        protected javax.money.CurrencyUnit getCurrency()
        The currency for the fulfillments.
      • getFulfillments

        protected List<com.broadleafcommerce.order.client.domain.OrderFulfillment> getFulfillments()
        The fulfillments whose tax details are being rounded.