@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCustomerGroupService") public class DefaultCustomerGroupService extends Object implements CustomerGroupService
The service enables you to retrieve customer groups and their names in the respective language..
Reference: SAP API Business Hub
OData Service: | API_CUSTOMERGROUP_SRV |
API Version: | 1 |
Communication Scenario: | SAP Analytics Cloud for Planning Integration (SAP_COM_0087) |
Scope Items: | Import Connection setup with SAP Analytics Cloud (1YB) |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCustomerGroupService()
Creates a service using
CustomerGroupService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCustomerGroupServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
CustomerGroupFluentHelper |
getAllCustomerGroup()
Fetch multiple
CustomerGroup entities. |
CustomerGroupTextFluentHelper |
getAllCustomerGroupText()
Fetch multiple
CustomerGroupText entities. |
CustomerGroupByKeyFluentHelper |
getCustomerGroupByKey(String customerGroup)
Fetch a single
CustomerGroup entity using key fields. |
CustomerGroupTextByKeyFluentHelper |
getCustomerGroupTextByKey(String customerGroup,
String language)
Fetch a single
CustomerGroupText entity using key fields. |
DefaultCustomerGroupService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCustomerGroupService()
CustomerGroupService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCustomerGroupService withServicePath(@Nonnull String servicePath)
CustomerGroupService
withServicePath
in interface CustomerGroupService
servicePath
- Service path that will override the default.@Nonnull public DefaultCustomerGroupServiceBatch batch()
batch
in interface BatchService<CustomerGroupServiceBatch>
@Nonnull public CustomerGroupFluentHelper getAllCustomerGroup()
CustomerGroupService
CustomerGroup
entities.getAllCustomerGroup
in interface CustomerGroupService
CustomerGroup
entities. This fluent helper allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerGroupByKeyFluentHelper getCustomerGroupByKey(String customerGroup)
CustomerGroupService
CustomerGroup
entity using key fields.getCustomerGroupByKey
in interface CustomerGroupService
customerGroup
- Identifies a particular group of customers (for example, wholesale or retail) for the purpose of
pricing or generating statistics.
Constraints: Not nullable, Maximum length: 2
CustomerGroup
entity using key fields. This fluent helper allows methods which modify the underlying query to be called
before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerGroupTextFluentHelper getAllCustomerGroupText()
CustomerGroupService
CustomerGroupText
entities.getAllCustomerGroupText
in interface CustomerGroupService
CustomerGroupText
entities. This fluent helper allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public CustomerGroupTextByKeyFluentHelper getCustomerGroupTextByKey(String customerGroup, String language)
CustomerGroupService
CustomerGroupText
entity using key fields.getCustomerGroupTextByKey
in interface CustomerGroupService
customerGroup
- Identifies a particular group of customers (for example, wholesale or retail) for the purpose of
pricing or generating statistics.
Constraints: Not nullable, Maximum length: 2
language
- The language key indicates
Constraints: Not nullable, Maximum length: 2
CustomerGroupText
entity using key fields. This fluent helper allows methods which modify the underlying
query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.