Class CancelFluentHelper
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<CancelFluentHelper,CancelInvoiceExportParameters,CancelInvoiceExportParameters>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.supplierinvoiceintegration.CancelFluentHelper
- All Implemented Interfaces:
FluentHelperExecutable<Object>
public class CancelFluentHelper
extends SingleValuedFluentHelperFunction<CancelFluentHelper,CancelInvoiceExportParameters,CancelInvoiceExportParameters>
Fluent helper for the Cancel OData function import.
-
Field Summary
Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.FluentHelperBasic
csrfTokenRetriever, entityCollection -
Constructor Summary
ConstructorsConstructorDescriptionCancelFluentHelper(String servicePath, String supplierInvoice, String fiscalYear, String reversalReason, LocalDateTime postingDate) Creates a fluent helper object that will execute the Cancel 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<CancelInvoiceExportParameters>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
-
CancelFluentHelper
public CancelFluentHelper(@Nonnull String servicePath, @Nonnull String supplierInvoice, @Nonnull String fiscalYear, @Nonnull String reversalReason, @Nonnull LocalDateTime postingDate) Creates a fluent helper object that will execute the Cancel OData function import with the provided parameters. To perform execution, call theexecuteRequestmethod on the fluent helper object.- Parameters:
reversalReason- Constraints: Not nullable, Maximum length: 2Original parameter name from the Odata EDM: ReversalReason
servicePath- Service path to be used to call the functions against.supplierInvoice- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: SupplierInvoice
postingDate- Time StampConstraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
fiscalYear- Constraints: Not nullable, Maximum length: 4Original parameter name from the Odata EDM: FiscalYear
-
-
Method Details
-
getEntityClass
- Specified by:
getEntityClassin classFluentHelperBasic<CancelFluentHelper,CancelInvoiceExportParameters, CancelInvoiceExportParameters>
-
getFunctionName
- Specified by:
getFunctionNamein classFluentHelperFunction<CancelFluentHelper,CancelInvoiceExportParameters, CancelInvoiceExportParameters>
-
refineJsonResponse
@Nullable protected com.google.gson.JsonElement refineJsonResponse(@Nullable com.google.gson.JsonElement jsonElement) -
getParameters
- Specified by:
getParametersin classFluentHelperFunction<CancelFluentHelper,CancelInvoiceExportParameters, CancelInvoiceExportParameters>
-
createRequest
- Specified by:
createRequestin classFluentHelperFunction<CancelFluentHelper,CancelInvoiceExportParameters, CancelInvoiceExportParameters>
-
executeRequest
@Nullable public CancelInvoiceExportParameters executeRequest(@Nonnull HttpDestinationProperties destination) Execute this function import.- Specified by:
executeRequestin interfaceFluentHelperExecutable<Object>- Specified by:
executeRequestin classFluentHelperBasic<CancelFluentHelper,CancelInvoiceExportParameters, CancelInvoiceExportParameters>
-