Class CancelItemFluentHelper
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic<FluentHelperT,ObjectT,ResultT>
com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperFunction<FluentHelperT,ObjectT,ResultT>
com.sap.cloud.sdk.datamodel.odata.helper.SingleValuedFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem,MaterialDocumentItem>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.materialdocument.CancelItemFluentHelper
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public class CancelItemFluentHelper
extends SingleValuedFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem,MaterialDocumentItem>
Fluent helper for the CancelItem OData function import.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection -
Constructor Summary
ConstructorsConstructorDescriptionCancelItemFluentHelper(String servicePath, String materialDocumentYear, String materialDocument, String materialDocumentItem, LocalDateTime postingDate) Creates a fluent helper object that will execute the CancelItem OData function import with the provided parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.http.client.methods.HttpUriRequestcreateRequest(URI uri) executeRequest(HttpDestinationProperties destination) Execute this function import.protected Class<MaterialDocumentItem>protected Stringprotected com.google.gson.JsonElementrefineJsonResponse(com.google.gson.JsonElement jsonElement) Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperFunction
executeMultiple, executeSingle, getCsrfTokenRetriever, toRequest, withCsrfToken, withoutCsrfTokenMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
getHeaders, getParametersForRequestOnly, getServicePath, getThis, withHeader, withHeaders, withQueryParameter
-
Constructor Details
-
CancelItemFluentHelper
public CancelItemFluentHelper(@Nonnull String servicePath, @Nonnull String materialDocumentYear, @Nonnull String materialDocument, @Nonnull String materialDocumentItem, @Nullable LocalDateTime postingDate) Creates a fluent helper object that will execute the CancelItem OData function import with the provided parameters. To perform execution, call theexecuteRequestmethod on the fluent helper object.- Parameters:
materialDocument- Material DocumentConstraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MaterialDocument
materialDocumentItem- Material Doc.ItemConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: MaterialDocumentItem
servicePath- Service path to be used to call the functions against.materialDocumentYear- Material Doc. YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: MaterialDocumentYear
postingDate- Posting DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
-
-
Method Details
-
getEntityClass
- Specified by:
getEntityClassin classFluentHelperBasic<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-
getFunctionName
- Specified by:
getFunctionNamein classFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-
refineJsonResponse
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement) - Overrides:
refineJsonResponsein classFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-
getParameters
- Specified by:
getParametersin classFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-
createRequest
- Specified by:
createRequestin classFluentHelperFunction<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-
executeRequest
@Nullable public MaterialDocumentItem executeRequest(@Nonnull HttpDestinationProperties destination) Execute this function import.- Specified by:
executeRequestin interfaceFluentHelperExecutable<Object>- Specified by:
executeRequestin classFluentHelperBasic<CancelItemFluentHelper,MaterialDocumentItem, MaterialDocumentItem>
-