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.productmaster.ProductSalesTax

public class ProductSalesTax extends VdmEntity<ProductSalesTax>
Sales Tax Data

Original entity name from the Odata EDM: A_ProductSalesTaxType

  • Field Details

    • ALL_FIELDS

      public static final ProductSalesTaxSelectable ALL_FIELDS
      Selector for all available fields of ProductSalesTax.
    • PRODUCT

      public static final ProductSalesTaxField<String> PRODUCT
      Use with available fluent helpers to apply the Product field to query operations.
    • COUNTRY

      public static final ProductSalesTaxField<String> COUNTRY
      Use with available fluent helpers to apply the Country field to query operations.
    • TAX_CATEGORY

      public static final ProductSalesTaxField<String> TAX_CATEGORY
      Use with available fluent helpers to apply the TaxCategory field to query operations.
    • TAX_CLASSIFICATION

      public static final ProductSalesTaxField<String> TAX_CLASSIFICATION
      Use with available fluent helpers to apply the TaxClassification field to query operations.
  • Constructor Details

    • ProductSalesTax

      public ProductSalesTax()
    • ProductSalesTax

      public ProductSalesTax(@Nullable String product, @Nullable String country, @Nullable String taxCategory, @Nullable String taxClassification)
  • Method Details

    • getType

      @Nonnull public Class<ProductSalesTax> getType()
      Specified by:
      getType in class VdmObject<ProductSalesTax>
    • setProduct

      public void setProduct(@Nullable String product)
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Parameters:
      product - Product Number
    • setCountry

      public void setCountry(@Nullable String country)
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Parameters:
      country - Departure Country/Region (from which the goods are sent)
    • setTaxCategory

      public void setTaxCategory(@Nullable String taxCategory)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TaxCategory

      Parameters:
      taxCategory - Tax Condition Type (Sales Tax, Value-Added Tax,...)
    • setTaxClassification

      public void setTaxClassification(@Nullable String taxClassification)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TaxClassification

      Parameters:
      taxClassification - The taxClassification to set.
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<ProductSalesTax>
    • getKey

      @Nonnull protected Map<String,Object> getKey()
      Overrides:
      getKey in class VdmObject<ProductSalesTax>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<ProductSalesTax>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<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 field
      fieldName - 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

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<ProductSalesTax>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<ProductSalesTax>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<ProductSalesTax>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductSalesTax>
    • builder

      @Nonnull public static ProductSalesTax.ProductSalesTaxBuilder builder()
    • getProduct

      @Nullable public String getProduct()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Product

      Returns:
      Product Number
    • getCountry

      @Nullable public String getCountry()
      (Key Field) Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Country

      Returns:
      Departure Country/Region (from which the goods are sent)
    • getTaxCategory

      @Nullable public String getTaxCategory()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TaxCategory

      Returns:
      Tax Condition Type (Sales Tax, Value-Added Tax,...)
    • getTaxClassification

      @Nullable public String getTaxClassification()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: TaxClassification

      Returns:
      The taxClassification contained in this entity.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<ProductSalesTax>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<ProductSalesTax>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<ProductSalesTax>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProductSalesTax>