Class ProdSalesDeliverySalesTax

java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<ProdSalesDeliverySalesTax>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.productv2.ProdSalesDeliverySalesTax
All Implemented Interfaces:
VdmEntitySet

public class ProdSalesDeliverySalesTax extends VdmEntity<ProdSalesDeliverySalesTax> implements VdmEntitySet
Product Sales Delivery Sales Tax

Original entity name from the Odata EDM: ProdSalesDeliverySalesTax_Type

  • Field Details

  • Constructor Details

    • ProdSalesDeliverySalesTax

      public ProdSalesDeliverySalesTax()
    • ProdSalesDeliverySalesTax

      public ProdSalesDeliverySalesTax(@Nullable String product, @Nullable String country, @Nullable String productSalesTaxCategory, @Nullable String productSalesOrg, @Nullable String productDistributionChnl, @Nullable String productTaxClassification, @Nullable Product to_Product, @Nullable ProductSalesDelivery to_ProductSalesDelivery)
  • Method Details

    • getType

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

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

      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)
    • setProductSalesTaxCategory

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

      Original property name from the Odata EDM: ProductSalesTaxCategory

      Parameters:
      productSalesTaxCategory - Tax Condition Type (Sales Tax, Value-Added Tax,...)
    • setProductSalesOrg

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

      Original property name from the Odata EDM: ProductSalesOrg

      Parameters:
      productSalesOrg - Sales Organization
    • setProductDistributionChnl

      public void setProductDistributionChnl(@Nullable String productDistributionChnl)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProductDistributionChnl

      Parameters:
      productDistributionChnl - Distribution Channel
    • setProductTaxClassification

      public void setProductTaxClassification(@Nullable String productTaxClassification)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductTaxClassification

      Parameters:
      productTaxClassification - The productTaxClassification to set.
    • getEntityCollection

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

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<ProdSalesDeliverySalesTax>
    • toMapOfFields

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

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<ProdSalesDeliverySalesTax>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProdSalesDeliverySalesTax>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProdSalesDeliverySalesTax>
    • getProductIfPresent

      @Nonnull public io.vavr.control.Option<Product> getProductIfPresent()
      Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.

      If the navigation property for an entity ProdSalesDeliverySalesTax has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _Product is already loaded, the result will contain the Product entity. If not, an Option with result state empty is returned.
    • setProduct

      public void setProduct(Product value)
      Overwrites the associated Product entity for the loaded navigation property _Product.
      Parameters:
      value - New Product entity.
    • getProductSalesDeliveryIfPresent

      @Nonnull public io.vavr.control.Option<ProductSalesDelivery> getProductSalesDeliveryIfPresent()
      Retrieval of associated ProductSalesDelivery entity (one to one). This corresponds to the OData navigation property _ProductSalesDelivery.

      If the navigation property for an entity ProdSalesDeliverySalesTax has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _ProductSalesDelivery is already loaded, the result will contain the ProductSalesDelivery entity. If not, an Option with result state empty is returned.
    • setProductSalesDelivery

      public void setProductSalesDelivery(ProductSalesDelivery value)
      Overwrites the associated ProductSalesDelivery entity for the loaded navigation property _ProductSalesDelivery.
      Parameters:
      value - New ProductSalesDelivery entity.
    • builder

    • getProduct

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

      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)
    • getProductSalesTaxCategory

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

      Original property name from the Odata EDM: ProductSalesTaxCategory

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

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

      Original property name from the Odata EDM: ProductSalesOrg

      Returns:
      Sales Organization
    • getProductDistributionChnl

      @Nullable public String getProductDistributionChnl()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ProductDistributionChnl

      Returns:
      Distribution Channel
    • getProductTaxClassification

      @Nullable public String getProductTaxClassification()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductTaxClassification

      Returns:
      The productTaxClassification contained in this VdmEntity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<ProdSalesDeliverySalesTax>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<ProdSalesDeliverySalesTax>