public interface TaxAddressSourceHandler
extends org.springframework.core.Ordered
FulfillmentGroup.getTaxAddressSource().| Modifier and Type | Method and Description |
|---|---|
com.broadleafcommerce.tax.domain.TaxAddress |
buildTaxAddressFromSource(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
Populates the tax address from the source specified by the value of
FulfillmentGroup.getTaxAddressSource(). |
boolean |
canHandle(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
Return true if this TaxAddressSourceHandler can handle the passed in request, i.e.
|
boolean canHandle(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
cart - The cart with items to be taxedfulfillmentGroup - The fulfillment group to be taxed.true if this TaxAddressSourceHandler can handle the passed in requestcom.broadleafcommerce.tax.domain.TaxAddress buildTaxAddressFromSource(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
FulfillmentGroup.getTaxAddressSource(). For example, if the source is
DefaultAddressSource.PAYMENT_ADDRESS, then the tax address will be populated by the
billing address from the cart payment.cart - The cart with items to be taxedfulfillmentGroup - The fulfillment group to be taxed.Copyright © 2021. All rights reserved.