@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultCountryOrRegionService") public class DefaultCountryOrRegionService extends Object implements CountryOrRegionService
The service enables you to retrieve country/region master data. It contains header and nodes with business information. You can read country/region information like ISO codes, currencies and tax procedure..
Reference: SAP API Business Hub
OData Service: | OP_API_COUNTRY_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCountryOrRegionService()
Creates a service using
CountryOrRegionService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultCountryOrRegionServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
CountryFluentHelper |
getAllCountry()
Fetch multiple
Country entities. |
CountryTextFluentHelper |
getAllCountryText()
Fetch multiple
CountryText entities. |
CountryByKeyFluentHelper |
getCountryByKey(String country)
Fetch a single
Country entity using key fields. |
CountryTextByKeyFluentHelper |
getCountryTextByKey(String country,
String language)
Fetch a single
CountryText entity using key fields. |
DefaultCountryOrRegionService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCountryOrRegionService()
CountryOrRegionService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCountryOrRegionService withServicePath(@Nonnull String servicePath)
CountryOrRegionService
withServicePath
in interface CountryOrRegionService
servicePath
- Service path that will override the default.@Nonnull public DefaultCountryOrRegionServiceBatch batch()
batch
in interface BatchService<CountryOrRegionServiceBatch>
@Nonnull public CountryFluentHelper getAllCountry()
CountryOrRegionService
Country
entities.getAllCountry
in interface CountryOrRegionService
Country
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 CountryByKeyFluentHelper getCountryByKey(String country)
CountryOrRegionService
Country
entity using key fields.getCountryByKey
in interface CountryOrRegionService
country
- Country Key
Constraints: Not nullable, Maximum length: 3
Country
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 CountryTextFluentHelper getAllCountryText()
CountryOrRegionService
CountryText
entities.getAllCountryText
in interface CountryOrRegionService
CountryText
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 CountryTextByKeyFluentHelper getCountryTextByKey(String country, String language)
CountryOrRegionService
CountryText
entity using key fields.getCountryTextByKey
in interface CountryOrRegionService
country
- Country Key
Constraints: Not nullable, Maximum length: 3
language
- Language Key
Constraints: Not nullable, Maximum length: 2
CountryText
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.