Class EnableForPurchasingFluentHelper
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.CollectionValuedFluentHelperFunction<EnableForPurchasingFluentHelper,Messages,List<Messages>>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.purchaserequisition.EnableForPurchasingFluentHelper
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public class EnableForPurchasingFluentHelper
extends CollectionValuedFluentHelperFunction<EnableForPurchasingFluentHelper,Messages,List<Messages>>
Fluent helper for the EnableForPurchasing OData function import.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection -
Constructor Summary
ConstructorsConstructorDescriptionEnableForPurchasingFluentHelper(String servicePath, String purchaseRequisitionItem, String purchaseRequisition) Creates a fluent helper object that will execute the EnableForPurchasing 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 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
-
EnableForPurchasingFluentHelper
public EnableForPurchasingFluentHelper(@Nonnull String servicePath, @Nonnull String purchaseRequisitionItem, @Nonnull String purchaseRequisition) Creates a fluent helper object that will execute the EnableForPurchasing OData function import with the provided parameters. To perform execution, call theexecuteRequestmethod on the fluent helper object.- Parameters:
purchaseRequisitionItem- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisitionItem
servicePath- Service path to be used to call the functions against.purchaseRequisition- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisition
-
-
Method Details
-
getEntityClass
- Specified by:
getEntityClassin classFluentHelperBasic<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-
getFunctionName
- Specified by:
getFunctionNamein classFluentHelperFunction<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-
refineJsonResponse
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement) - Overrides:
refineJsonResponsein classFluentHelperFunction<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-
getParameters
- Specified by:
getParametersin classFluentHelperFunction<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-
createRequest
- Specified by:
createRequestin classFluentHelperFunction<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-
executeRequest
Execute this function import.- Specified by:
executeRequestin interfaceFluentHelperExecutable<Object>- Specified by:
executeRequestin classFluentHelperBasic<EnableForPurchasingFluentHelper,Messages, List<Messages>>
-