All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultChartOfAccountsService 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.chartofaccounts.ChartOfAccountsByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.chartofaccounts.ChartOfAccountsFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.chartofaccounts.ChartOfAccountsTextByKeyFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.chartofaccounts.ChartOfAccountsTextFluentHelper;
import com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.chartofaccounts.batch.DefaultChartOfAccountsServiceBatch;

/**
 * 

* This service enables you to read chart of accounts master data in an API call. It is based on the OData protocol, and * can be consumed in Fiori apps and on other user interfaces. *

*

* Business * Documentation *

*

* Reference: SAP * API Business Hub *

*

Details:

* * * * * * * * * * * * * * * * * *
OData Service:API_CHARTOFACCOUNTS_SRV
API Version:1
Communication Scenario:SAP Business Objects Cloud for Planning Integration (SAP_COM_0087)
Scope Items:oData Integration with SAP Business Objects Cloud for * Planning (1YB)
* */ @Named( "com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultChartOfAccountsService" ) public class DefaultChartOfAccountsService implements ChartOfAccountsService { @Nonnull private final String servicePath; /** * Creates a service using {@link ChartOfAccountsService#DEFAULT_SERVICE_PATH} to send the requests. * */ public DefaultChartOfAccountsService() { servicePath = ChartOfAccountsService.DEFAULT_SERVICE_PATH; } /** * Creates a service using the provided service path to send the requests. *

* Used by the fluent {@link #withServicePath(String)} method. * */ private DefaultChartOfAccountsService( @Nonnull final String servicePath ) { this.servicePath = servicePath; } @Override @Nonnull public DefaultChartOfAccountsService withServicePath( @Nonnull final String servicePath ) { return new DefaultChartOfAccountsService(servicePath); } /** * {@inheritDoc} * */ @Override @Nonnull public DefaultChartOfAccountsServiceBatch batch() { return new DefaultChartOfAccountsServiceBatch(this); } @Override @Nonnull public ChartOfAccountsFluentHelper getAllChartOfAccounts() { return new ChartOfAccountsFluentHelper(servicePath); } @Override @Nonnull public ChartOfAccountsByKeyFluentHelper getChartOfAccountsByKey( final String chartOfAccounts ) { return new ChartOfAccountsByKeyFluentHelper(servicePath, chartOfAccounts); } @Override @Nonnull public ChartOfAccountsTextFluentHelper getAllChartOfAccountsText() { return new ChartOfAccountsTextFluentHelper(servicePath); } @Override @Nonnull public ChartOfAccountsTextByKeyFluentHelper getChartOfAccountsTextByKey( final String chartOfAccounts, final String language ) { return new ChartOfAccountsTextByKeyFluentHelper(servicePath, chartOfAccounts, language); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy