public class VoucherResource
extends <any>
| Constructor and Description |
|---|
VoucherResource()
Generated constructor - for generic creation.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
deleteVoucher()
Generated HTTP method for covering DELETE requests.
|
AbstractYResource |
getHMCHistoryEntryResource(String resourceKey)
Generated getter for sub resource of type
HMCHistoryEntryResource for current root resource |
AbstractYResource |
getLinkResource(String resourceKey)
Generated getter for sub resource of type
LinkResource for current root resource |
Response |
getVoucher()
Generated HTTP method for covering GET requests.
|
VoucherModel |
getVoucherModel()
Convenience method which just delegates to
#getResourceValue() |
Response |
putVoucher(VoucherDTO dto)
Generated HTTP method for covering PUT requests.
|
protected VoucherModel |
readResource(String resourceId)
Gets the
VoucherModel resource which is addressed by current resource request. |
void |
setVoucherModel(VoucherModel value)
Convenience method which just delegates to
#setResourceValue(VoucherModel) |
public VoucherResource()
public Response deleteVoucher()
Responsepublic AbstractYResource getHMCHistoryEntryResource(String resourceKey)
HMCHistoryEntryResource for current root resourcepublic AbstractYResource getLinkResource(String resourceKey)
LinkResource for current root resourcepublic Response getVoucher()
Responsepublic VoucherModel getVoucherModel()
#getResourceValue()public Response putVoucher(VoucherDTO dto)
Responseprotected VoucherModel readResource(String resourceId) throws Exception
VoucherModel resource which is addressed by current resource request.Exceptionde.hybris.platform.webservices.AbstractYResource#readResource(String)public void setVoucherModel(VoucherModel value)
#setResourceValue(VoucherModel)Copyright © 2017 SAP SE. All Rights Reserved.