
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultProcessOrderConfirmationService Maven / Gradle / Ivy
/*
* Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved.
*/
package com.sap.cloud.sdk.s4hana.datamodel.odata.services;
import javax.annotation.Nonnull;
import javax.inject.Named;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.processorderconfirmation.ProcOrdConfirmationByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.processorderconfirmation.ProcOrdConfirmationFluentHelper;
/**
*
* This service enables you to read process order confirmations.
*
*
*
* Reference: SAP
* API Business Hub
*
* Details:
*
*
* OData Service:
* API_PROC_ORDER_CONFIRMATION
*
*
* API Version:
* 1
*
*
* Communication Scenario:
* Production Planning Integration (SAP_COM_0104)
*
*
* Scope Items:
* Material Requirements Planning (J44)
*
*
*
*/
@Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultProcessOrderConfirmationService" )
public class DefaultProcessOrderConfirmationService implements ProcessOrderConfirmationService
{
@Nonnull
private final String servicePath;
/**
* Creates a service using {@link ProcessOrderConfirmationService#DEFAULT_SERVICE_PATH} to send the requests.
*
*/
public DefaultProcessOrderConfirmationService()
{
servicePath = ProcessOrderConfirmationService.DEFAULT_SERVICE_PATH;
}
/**
* Creates a service using the provided service path to send the requests.
*
* Used by the fluent {@link #withServicePath(String)} method.
*
*/
private DefaultProcessOrderConfirmationService( @Nonnull final String servicePath )
{
this.servicePath = servicePath;
}
@Override
@Nonnull
public DefaultProcessOrderConfirmationService withServicePath( @Nonnull final String servicePath )
{
return new DefaultProcessOrderConfirmationService(servicePath);
}
@Override
@Nonnull
public ProcOrdConfirmationFluentHelper getAllProcOrdConfirmation()
{
return new ProcOrdConfirmationFluentHelper(servicePath);
}
@Override
@Nonnull
public
ProcOrdConfirmationByKeyFluentHelper
getProcOrdConfirmationByKey( final String processOrderConfirmation, final String operationConfirmationCount )
{
return new ProcOrdConfirmationByKeyFluentHelper(
servicePath,
processOrderConfirmation,
operationConfirmationCount);
}
}