public class PaymentTaxAddressSourceHandler extends Object implements TaxAddressSourceHandler
| Constructor and Description |
|---|
PaymentTaxAddressSourceHandler(com.broadleafcommerce.common.extension.TypeFactory typeFactory) |
| 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.
|
int |
getOrder() |
protected com.broadleafcommerce.common.extension.TypeFactory |
getTypeFactory() |
void |
setOrder(int order) |
public PaymentTaxAddressSourceHandler(com.broadleafcommerce.common.extension.TypeFactory typeFactory)
public boolean canHandle(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
TaxAddressSourceHandlercanHandle in interface TaxAddressSourceHandlercart - The cart with items to be taxedfulfillmentGroup - The fulfillment group to be taxed.true if this TaxAddressSourceHandler can handle the passed in requestpublic com.broadleafcommerce.tax.domain.TaxAddress buildTaxAddressFromSource(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.FulfillmentGroup fulfillmentGroup)
TaxAddressSourceHandlerFulfillmentGroup.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.buildTaxAddressFromSource in interface TaxAddressSourceHandlercart - The cart with items to be taxedfulfillmentGroup - The fulfillment group to be taxed.protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
public int getOrder()
getOrder in interface org.springframework.core.Orderedpublic void setOrder(int order)
Copyright © 2021. All rights reserved.