Class PostDifferencesFluentHelper
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<PostDifferencesFluentHelper,PhysInventoryDocHeader,PhysInventoryDocHeader>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.physicalinventorydocument.PostDifferencesFluentHelper
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public class PostDifferencesFluentHelper
extends SingleValuedFluentHelperFunction<PostDifferencesFluentHelper,PhysInventoryDocHeader,PhysInventoryDocHeader>
Fluent helper for the PostDifferences OData function import.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection -
Constructor Summary
ConstructorsConstructorDescriptionPostDifferencesFluentHelper(String servicePath, BigDecimal postingThresholdValue, LocalDateTime postingDate, String physicalInventoryDocument, String fiscalYear) Creates a fluent helper object that will execute the PostDifferences 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<PhysInventoryDocHeader>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
-
PostDifferencesFluentHelper
public PostDifferencesFluentHelper(@Nonnull String servicePath, @Nullable BigDecimal postingThresholdValue, @Nullable LocalDateTime postingDate, @Nonnull String physicalInventoryDocument, @Nonnull String fiscalYear) Creates a fluent helper object that will execute the PostDifferences OData function import with the provided parameters. To perform execution, call theexecuteRequestmethod on the fluent helper object.- Parameters:
servicePath- Service path to be used to call the functions against.postingThresholdValue- Threshold ValueConstraints: Nullable, Precision: 14, Scale: 3
Original parameter name from the Odata EDM: PostingThresholdValue
postingDate- Posting DateConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
fiscalYear- Fiscal YearConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: FiscalYear
physicalInventoryDocument- Phys. Inventory Doc.Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: PhysicalInventoryDocument
-
-
Method Details
-
getEntityClass
- Specified by:
getEntityClassin classFluentHelperBasic<PostDifferencesFluentHelper,PhysInventoryDocHeader, PhysInventoryDocHeader>
-
getFunctionName
- Specified by:
getFunctionNamein classFluentHelperFunction<PostDifferencesFluentHelper,PhysInventoryDocHeader, PhysInventoryDocHeader>
-
refineJsonResponse
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement) -
getParameters
- Specified by:
getParametersin classFluentHelperFunction<PostDifferencesFluentHelper,PhysInventoryDocHeader, PhysInventoryDocHeader>
-
createRequest
- Specified by:
createRequestin classFluentHelperFunction<PostDifferencesFluentHelper,PhysInventoryDocHeader, PhysInventoryDocHeader>
-
executeRequest
@Nullable public PhysInventoryDocHeader executeRequest(@Nonnull HttpDestinationProperties destination) Execute this function import.- Specified by:
executeRequestin interfaceFluentHelperExecutable<Object>- Specified by:
executeRequestin classFluentHelperBasic<PostDifferencesFluentHelper,PhysInventoryDocHeader, PhysInventoryDocHeader>
-