Class TaxInvoiceController
- java.lang.Object
-
- de.hybris.platform.chinesetaxinvoiceoccaddon.controllers.TaxInvoiceController
-
@Controller @RequestMapping("/{baseSiteId}") public class TaxInvoiceController extends java.lang.ObjectController for tax invoice, provide RESTful API for tax invoice
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringDEFAULT_FIELD_SETprotected static java.lang.StringTAX_INVOICE_OBJECT
-
Constructor Summary
Constructors Constructor Description TaxInvoiceController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataMappergetDataMapper()org.springframework.validation.ValidatorgetTaxInvoiceDTOValidator()TaxInvoiceCheckoutFacadegetTaxInvoiceFacade()java.util.List<InvoiceRecipientType>getTaxInvoiceRecipientTypes()voidremoveCartTaxInvoice()protected voidremoveTaxInvoice()voidreplaceCartTaxInvoice(TaxInvoiceWsDTO taxInvoice)protected voidvalidate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-
-
Field Detail
-
DEFAULT_FIELD_SET
protected static final java.lang.String DEFAULT_FIELD_SET
- See Also:
- Constant Field Values
-
TAX_INVOICE_OBJECT
protected static final java.lang.String TAX_INVOICE_OBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTaxInvoiceRecipientTypes
@RequestMapping(value="/taxinvoice/recipienttypes", method=GET) @ResponseBody public java.util.List<InvoiceRecipientType> getTaxInvoiceRecipientTypes()
-
removeCartTaxInvoice
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/taxinvoice", method=DELETE) @ResponseStatus(OK) public void removeCartTaxInvoice()
-
replaceCartTaxInvoice
@Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT","ROLE_GUEST"}) @RequestMapping(value="/users/{userId}/carts/{cartId}/taxinvoice", method=PUT, consumes={"application/json","application/xml"}) @ResponseStatus(OK) public void replaceCartTaxInvoice(@RequestBody TaxInvoiceWsDTO taxInvoice)
-
getTaxInvoiceFacade
public TaxInvoiceCheckoutFacade getTaxInvoiceFacade()
-
getDataMapper
public DataMapper getDataMapper()
-
getTaxInvoiceDTOValidator
public org.springframework.validation.Validator getTaxInvoiceDTOValidator()
-
removeTaxInvoice
protected void removeTaxInvoice()
-
validate
protected void validate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-