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

public class ProductPlantPurchaseTax extends VdmEntity<ProductPlantPurchaseTax> implements VdmEntitySet
Product Plant Purchase Tax

Original entity name from the Odata EDM: ProductPlantPurchaseTax_Type

  • Field Details

  • Constructor Details

    • ProductPlantPurchaseTax

      public ProductPlantPurchaseTax()
    • ProductPlantPurchaseTax

      public ProductPlantPurchaseTax(@Nullable String product, @Nullable String plant, @Nullable String departureCountry, @Nullable String prodPurchaseTaxClassification, @Nullable Product to_Product, @Nullable ProductPlant to_ProductPlant)
  • Method Details

    • getType

      @Nonnull public Class<ProductPlantPurchaseTax> getType()
      Specified by:
      getType in class VdmObject<ProductPlantPurchaseTax>
    • 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
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setDepartureCountry

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

      Original property name from the Odata EDM: DepartureCountry

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

      public void setProdPurchaseTaxClassification(@Nullable String prodPurchaseTaxClassification)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProdPurchaseTaxClassification

      Parameters:
      prodPurchaseTaxClassification - Tax indicator for material (Purchasing)
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<ProductPlantPurchaseTax>
    • 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 ProductPlantPurchaseTax 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.
    • getProductPlantIfPresent

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

      If the navigation property for an entity ProductPlantPurchaseTax 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 _ProductPlant is already loaded, the result will contain the ProductPlant entity. If not, an Option with result state empty is returned.
    • setProductPlant

      public void setProductPlant(ProductPlant value)
      Overwrites the associated ProductPlant entity for the loaded navigation property _ProductPlant.
      Parameters:
      value - New ProductPlant 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
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getDepartureCountry

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

      Original property name from the Odata EDM: DepartureCountry

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

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

      Original property name from the Odata EDM: ProdPurchaseTaxClassification

      Returns:
      Tax indicator for material (Purchasing)
    • toString

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

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

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

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

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