java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<SalesOrderItmPrcgElmntSimln>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.salesordersimulate.SalesOrderItmPrcgElmntSimln

public class SalesOrderItmPrcgElmntSimln extends VdmEntity<SalesOrderItmPrcgElmntSimln>
Sales Order Item Pricing Elmnt Sim (API)

Original entity name from the Odata EDM: A_SalesOrderItmPrcgElmntSimlnType

  • Field Details

  • Constructor Details

    • SalesOrderItmPrcgElmntSimln

      public SalesOrderItmPrcgElmntSimln()
    • SalesOrderItmPrcgElmntSimln

      public SalesOrderItmPrcgElmntSimln(@Nullable String salesOrder, @Nullable String salesOrderItem, @Nullable String pricingProcedureStep, @Nullable String pricingProcedureCounter, @Nullable String conditionType, @Nullable LocalDateTime priceConditionDeterminationDte, @Nullable String conditionCalculationType, @Nullable BigDecimal conditionBaseValue, @Nullable BigDecimal conditionRateValue, @Nullable String conditionCurrency, @Nullable BigDecimal conditionQuantity, @Nullable String conditionQuantityUnit, @Nullable String conditionQuantitySAPUnit, @Nullable String conditionQuantityISOUnit, @Nullable Boolean conditionIsForStatistics, @Nullable String conditionOrigin, @Nullable String isGroupCondition, @Nullable BigDecimal conditionAmount, @Nullable String transactionCurrency, @Nullable String conditionInactiveReason, @Nullable String conditionClass, @Nullable String pricingScaleBasis, @Nullable BigDecimal conditionScaleBasisValue, @Nullable Boolean conditionIsManuallyChanged, @Nullable SalesOrderSimulation toSalesOrder, @Nullable SalesOrderItemSimulation toSalesOrderItem)
  • Method Details

    • getType

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

      public void setSalesOrder(@Nullable String salesOrder)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SalesOrder

      Parameters:
      salesOrder - Sales Order
    • setSalesOrderItem

      public void setSalesOrderItem(@Nullable String salesOrderItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Parameters:
      salesOrderItem - Sales Order Item
    • setPricingProcedureStep

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

      Original property name from the Odata EDM: PricingProcedureStep

      Parameters:
      pricingProcedureStep - Step Number
    • setPricingProcedureCounter

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

      Original property name from the Odata EDM: PricingProcedureCounter

      Parameters:
      pricingProcedureCounter - Condition Counter
    • setConditionType

      public void setConditionType(@Nullable String conditionType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConditionType

      Parameters:
      conditionType - Condition Type
    • setPriceConditionDeterminationDte

      public void setPriceConditionDeterminationDte(@Nullable LocalDateTime priceConditionDeterminationDte)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PriceConditionDeterminationDte

      Parameters:
      priceConditionDeterminationDte - Condition Pricing Date
    • setConditionCalculationType

      public void setConditionCalculationType(@Nullable String conditionCalculationType)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionCalculationType

      Parameters:
      conditionCalculationType - Calculation Type for Condition
    • setConditionBaseValue

      public void setConditionBaseValue(@Nullable BigDecimal conditionBaseValue)
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionBaseValue

      Parameters:
      conditionBaseValue - Condition Basis
    • setConditionRateValue

      public void setConditionRateValue(@Nullable BigDecimal conditionRateValue)
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionRateValue

      Parameters:
      conditionRateValue - Condition Amount or Percentage
    • setConditionCurrency

      public void setConditionCurrency(@Nullable String conditionCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionCurrency

      Parameters:
      conditionCurrency - Currency Key
    • setConditionQuantity

      public void setConditionQuantity(@Nullable BigDecimal conditionQuantity)
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: ConditionQuantity

      Parameters:
      conditionQuantity - Condition Pricing Unit
    • setConditionQuantityUnit

      public void setConditionQuantityUnit(@Nullable String conditionQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityUnit

      Parameters:
      conditionQuantityUnit - Condition Unit in the Document
    • setConditionQuantitySAPUnit

      public void setConditionQuantitySAPUnit(@Nullable String conditionQuantitySAPUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantitySAPUnit

      Parameters:
      conditionQuantitySAPUnit - SAP Unit Code for Condition Quantity
    • setConditionQuantityISOUnit

      public void setConditionQuantityISOUnit(@Nullable String conditionQuantityISOUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityISOUnit

      Parameters:
      conditionQuantityISOUnit - ISO Unit Code for Condition Quantity
    • setConditionIsForStatistics

      public void setConditionIsForStatistics(@Nullable Boolean conditionIsForStatistics)
      Constraints: none

      Original property name from the Odata EDM: ConditionIsForStatistics

      Parameters:
      conditionIsForStatistics - Condition is used for statistics
    • setConditionOrigin

      public void setConditionOrigin(@Nullable String conditionOrigin)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionOrigin

      Parameters:
      conditionOrigin - Origin of the Condition
    • setIsGroupCondition

      public void setIsGroupCondition(@Nullable String isGroupCondition)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: IsGroupCondition

      Parameters:
      isGroupCondition - Group Condition
    • setConditionAmount

      public void setConditionAmount(@Nullable BigDecimal conditionAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ConditionAmount

      Parameters:
      conditionAmount - Condition Value
    • setTransactionCurrency

      public void setTransactionCurrency(@Nullable String transactionCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TransactionCurrency

      Parameters:
      transactionCurrency - SD Document Currency
    • setConditionInactiveReason

      public void setConditionInactiveReason(@Nullable String conditionInactiveReason)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionInactiveReason

      Parameters:
      conditionInactiveReason - Condition is Inactive
    • setConditionClass

      public void setConditionClass(@Nullable String conditionClass)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ConditionClass

      Parameters:
      conditionClass - Condition Class
    • setPricingScaleBasis

      public void setPricingScaleBasis(@Nullable String pricingScaleBasis)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PricingScaleBasis

      Parameters:
      pricingScaleBasis - Scale Basis Indicator
    • setConditionScaleBasisValue

      public void setConditionScaleBasisValue(@Nullable BigDecimal conditionScaleBasisValue)
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionScaleBasisValue

      Parameters:
      conditionScaleBasisValue - Scale Base Value
    • setConditionIsManuallyChanged

      public void setConditionIsManuallyChanged(@Nullable Boolean conditionIsManuallyChanged)
      Constraints: none

      Original property name from the Odata EDM: ConditionIsManuallyChanged

      Parameters:
      conditionIsManuallyChanged - Condition Changed Manually
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SalesOrderItmPrcgElmntSimlnField<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> SalesOrderItmPrcgElmntSimlnField<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<SalesOrderItmPrcgElmntSimln>
    • setServicePathForFetch

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

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

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

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

      @Nullable public SalesOrderSimulation fetchSalesOrder()
      Fetches the SalesOrderSimulation entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SalesOrder.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated SalesOrderSimulation entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderOrFetch

      @Nullable public SalesOrderSimulation getSalesOrderOrFetch()
      Retrieval of associated SalesOrderSimulation entity (one to one). This corresponds to the OData navigation property to_SalesOrder.

      If the navigation property to_SalesOrder of a queried SalesOrderItmPrcgElmntSimln is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated SalesOrderSimulation entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderIfPresent

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

      If the navigation property for an entity SalesOrderItmPrcgElmntSimln 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 to_SalesOrder is already loaded, the result will contain the SalesOrderSimulation entity. If not, an Option with result state empty is returned.
    • setSalesOrder

      public void setSalesOrder(SalesOrderSimulation value)
      Overwrites the associated SalesOrderSimulation entity for the loaded navigation property to_SalesOrder.
      Parameters:
      value - New SalesOrderSimulation entity.
    • fetchSalesOrderItem

      @Nullable public SalesOrderItemSimulation fetchSalesOrderItem()
      Fetches the SalesOrderItemSimulation entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SalesOrderItem.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated SalesOrderItemSimulation entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderItemOrFetch

      @Nullable public SalesOrderItemSimulation getSalesOrderItemOrFetch()
      Retrieval of associated SalesOrderItemSimulation entity (one to one). This corresponds to the OData navigation property to_SalesOrderItem.

      If the navigation property to_SalesOrderItem of a queried SalesOrderItmPrcgElmntSimln is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Returns:
      List of associated SalesOrderItemSimulation entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException - If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
    • getSalesOrderItemIfPresent

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

      If the navigation property for an entity SalesOrderItmPrcgElmntSimln 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 to_SalesOrderItem is already loaded, the result will contain the SalesOrderItemSimulation entity. If not, an Option with result state empty is returned.
    • setSalesOrderItem

      public void setSalesOrderItem(SalesOrderItemSimulation value)
      Overwrites the associated SalesOrderItemSimulation entity for the loaded navigation property to_SalesOrderItem.
      Parameters:
      value - New SalesOrderItemSimulation entity.
    • builder

    • getSalesOrder

      @Nullable public String getSalesOrder()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SalesOrder

      Returns:
      Sales Order
    • getSalesOrderItem

      @Nullable public String getSalesOrderItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SalesOrderItem

      Returns:
      Sales Order Item
    • getPricingProcedureStep

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

      Original property name from the Odata EDM: PricingProcedureStep

      Returns:
      Step Number
    • getPricingProcedureCounter

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

      Original property name from the Odata EDM: PricingProcedureCounter

      Returns:
      Condition Counter
    • getConditionType

      @Nullable public String getConditionType()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: ConditionType

      Returns:
      Condition Type
    • getPriceConditionDeterminationDte

      @Nullable public LocalDateTime getPriceConditionDeterminationDte()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: PriceConditionDeterminationDte

      Returns:
      Condition Pricing Date
    • getConditionCalculationType

      @Nullable public String getConditionCalculationType()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionCalculationType

      Returns:
      Calculation Type for Condition
    • getConditionBaseValue

      @Nullable public BigDecimal getConditionBaseValue()
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionBaseValue

      Returns:
      Condition Basis
    • getConditionRateValue

      @Nullable public BigDecimal getConditionRateValue()
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionRateValue

      Returns:
      Condition Amount or Percentage
    • getConditionCurrency

      @Nullable public String getConditionCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionCurrency

      Returns:
      Currency Key
    • getConditionQuantity

      @Nullable public BigDecimal getConditionQuantity()
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: ConditionQuantity

      Returns:
      Condition Pricing Unit
    • getConditionQuantityUnit

      @Nullable public String getConditionQuantityUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityUnit

      Returns:
      Condition Unit in the Document
    • getConditionQuantitySAPUnit

      @Nullable public String getConditionQuantitySAPUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantitySAPUnit

      Returns:
      SAP Unit Code for Condition Quantity
    • getConditionQuantityISOUnit

      @Nullable public String getConditionQuantityISOUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityISOUnit

      Returns:
      ISO Unit Code for Condition Quantity
    • getConditionIsForStatistics

      @Nullable public Boolean getConditionIsForStatistics()
      Constraints: none

      Original property name from the Odata EDM: ConditionIsForStatistics

      Returns:
      Condition is used for statistics
    • getConditionOrigin

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

      Original property name from the Odata EDM: ConditionOrigin

      Returns:
      Origin of the Condition
    • getIsGroupCondition

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

      Original property name from the Odata EDM: IsGroupCondition

      Returns:
      Group Condition
    • getConditionAmount

      @Nullable public BigDecimal getConditionAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ConditionAmount

      Returns:
      Condition Value
    • getTransactionCurrency

      @Nullable public String getTransactionCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: TransactionCurrency

      Returns:
      SD Document Currency
    • getConditionInactiveReason

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

      Original property name from the Odata EDM: ConditionInactiveReason

      Returns:
      Condition is Inactive
    • getConditionClass

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

      Original property name from the Odata EDM: ConditionClass

      Returns:
      Condition Class
    • getPricingScaleBasis

      @Nullable public String getPricingScaleBasis()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: PricingScaleBasis

      Returns:
      Scale Basis Indicator
    • getConditionScaleBasisValue

      @Nullable public BigDecimal getConditionScaleBasisValue()
      Constraints: Not nullable, Precision: 24, Scale: 9

      Original property name from the Odata EDM: ConditionScaleBasisValue

      Returns:
      Scale Base Value
    • getConditionIsManuallyChanged

      @Nullable public Boolean getConditionIsManuallyChanged()
      Constraints: none

      Original property name from the Odata EDM: ConditionIsManuallyChanged

      Returns:
      Condition Changed Manually
    • toString

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

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

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

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