Package com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.productmasterdataincludingclassification
Class ProductSalesTax
java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<ProductSalesTax>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.productmasterdataincludingclassification.ProductSalesTax
Sales Tax Data
Original entity name from the Odata EDM: A_ProductSalesTaxType
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProductSalesTaxSelectableSelector for all available fields of ProductSalesTax.static final ProductSalesTaxField<String>Use with available fluent helpers to apply the Country field to query operations.static final ProductSalesTaxField<String>Use with available fluent helpers to apply the Product field to query operations.static final ProductSalesTaxField<String>Use with available fluent helpers to apply the TaxCategory field to query operations.static final ProductSalesTaxField<String>Use with available fluent helpers to apply the TaxClassification field to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionProductSalesTax(String product, String country, String taxCategory, String taxClassification) -
Method Summary
Modifier and TypeMethodDescriptionvoidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanstatic <T,DomainT>
ProductSalesTaxField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> ProductSalesTaxField<T>Use with available fluent helpers to apply an extension field to query operations.protected void(Key Field) Constraints: Not nullable, Maximum length: 3protected Stringprotected StringgetKey()(Key Field) Constraints: Not nullable, Maximum length: 40(Key Field) Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 1getType()inthashCode()voidsetCountry(String country) (Key Field) Constraints: Not nullable, Maximum length: 3voidsetProduct(String product) (Key Field) Constraints: Not nullable, Maximum length: 40protected voidsetServicePathForFetch(String servicePathForFetch) voidsetTaxCategory(String taxCategory) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetTaxClassification(String taxClassification) (Key Field) Constraints: Not nullable, Maximum length: 1toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
-
Field Details
-
ALL_FIELDS
Selector for all available fields of ProductSalesTax. -
PRODUCT
Use with available fluent helpers to apply the Product field to query operations. -
COUNTRY
Use with available fluent helpers to apply the Country field to query operations. -
TAX_CATEGORY
Use with available fluent helpers to apply the TaxCategory field to query operations. -
TAX_CLASSIFICATION
Use with available fluent helpers to apply the TaxClassification field to query operations.
-
-
Constructor Details
-
ProductSalesTax
public ProductSalesTax() -
ProductSalesTax
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductSalesTax>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setCountry
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Parameters:
country- Departure Country/Region (from which the goods are sent)
-
setTaxCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TaxCategory
- Parameters:
taxCategory- Tax Condition Type (Sales Tax, Value-Added Tax,...)
-
setTaxClassification
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: TaxClassification
- Parameters:
taxClassification- The taxClassification to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductSalesTax>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductSalesTax>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductSalesTax>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductSalesTax>
-
field
@Nonnull public static <T> ProductSalesTaxField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> ProductSalesTaxField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<ProductSalesTax>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<ProductSalesTax>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<ProductSalesTax>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductSalesTax>
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 40Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getCountry
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Country
- Returns:
- Departure Country/Region (from which the goods are sent)
-
getTaxCategory
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: TaxCategory
- Returns:
- Tax Condition Type (Sales Tax, Value-Added Tax,...)
-
getTaxClassification
(Key Field) Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: TaxClassification
- Returns:
- The taxClassification contained in this entity.
-
toString
- Overrides:
toStringin classVdmObject<ProductSalesTax>
-
equals
- Overrides:
equalsin classVdmEntity<ProductSalesTax>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductSalesTax>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductSalesTax>
-