Interface TaxRequestService
- All Known Implementing Classes:
DefaultTaxRequestService
public interface TaxRequestService
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.tax.domain.AdjustTaxTransactionRequest
getAdjustTaxRequest
(com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.order.client.domain.OrderFulfillment cancelledFulfillment, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> nonCancelledFulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create an adjusted transaction based on the supplied order and fulfillmentscom.broadleafcommerce.tax.domain.CommitTaxRequest
getCommitTaxRequest
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> orderFulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a commit tax request for used when committing taxes.com.broadleafcommerce.tax.domain.ReverseTaxTransactionRequest
getReverseTransactionRequest
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a reverse tax transaction request.com.broadleafcommerce.tax.domain.VoidTransactionRequest
getVoidTransaction
(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a void transaction request.
-
Field Details
-
TAX_ID_KEY
- See Also:
-
TAX_PROVIDER_ID_KEY
- See Also:
-
-
Method Details
-
getCommitTaxRequest
com.broadleafcommerce.tax.domain.CommitTaxRequest getCommitTaxRequest(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> orderFulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a commit tax request for used when committing taxes.- Parameters:
order
- The submitted orderorderFulfillments
- The order fulfillmentscontextInfo
- The context- Returns:
- A commit tax request
-
getAdjustTaxRequest
com.broadleafcommerce.tax.domain.AdjustTaxTransactionRequest getAdjustTaxRequest(com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.order.client.domain.OrderFulfillment cancelledFulfillment, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> nonCancelledFulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create an adjusted transaction based on the supplied order and fulfillments- Parameters:
order
- The original ordercancelledFulfillment
- The cancelled fulfillmentnonCancelledFulfillments
- The non-cancelled fulfillmentscontextInfo
- The context- Returns:
- A populated adjust transaction request
-
getReverseTransactionRequest
com.broadleafcommerce.tax.domain.ReverseTaxTransactionRequest getReverseTransactionRequest(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, @Nullable com.broadleafcommerce.order.client.domain.ReturnAuthorization returnAuthorization, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a reverse tax transaction request. Used to submit reverse transactions to the tax provider.- Parameters:
order
- The original orderfulfillments
- The order's fulfillmentsreturnAuthorization
- The return authorization. If null, it's assumed this is an order that has been cancelled without ever fulfillingcontextInfo
- The current context- Returns:
- A reverse tax transaction request
-
getVoidTransaction
com.broadleafcommerce.tax.domain.VoidTransactionRequest getVoidTransaction(com.broadleafcommerce.order.client.domain.Order order, List<com.broadleafcommerce.order.client.domain.OrderFulfillment> fulfillments, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Create a void transaction request.- Parameters:
order
- The original orderfulfillments
- The fulfillmentscontextInfo
- The current context- Returns:
- A void transaction request
-