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

public class SlsPrcgCndnRecordScale extends VdmEntity<SlsPrcgCndnRecordScale>
Pricing Scales

Original entity name from the Odata EDM: A_SlsPrcgCndnRecordScaleType

  • Field Details

    • ALL_FIELDS

      public static final SlsPrcgCndnRecordScaleSelectable ALL_FIELDS
      Selector for all available fields of SlsPrcgCndnRecordScale.
    • CONDITION_RECORD

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_RECORD
      Use with available fluent helpers to apply the ConditionRecord field to query operations.
    • CONDITION_SEQUENTIAL_NUMBER

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_SEQUENTIAL_NUMBER
      Use with available fluent helpers to apply the ConditionSequentialNumber field to query operations.
    • CONDITION_SCALE_LINE

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_SCALE_LINE
      Use with available fluent helpers to apply the ConditionScaleLine field to query operations.
    • CONDITION_SCALE_QUANTITY

      public static final SlsPrcgCndnRecordScaleField<BigDecimal> CONDITION_SCALE_QUANTITY
      Use with available fluent helpers to apply the ConditionScaleQuantity field to query operations.
    • CONDITION_SCALE_QUANTITY_UNIT

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_SCALE_QUANTITY_UNIT
      Use with available fluent helpers to apply the ConditionScaleQuantityUnit field to query operations.
    • CONDITION_SCALE_AMOUNT

      public static final SlsPrcgCndnRecordScaleField<BigDecimal> CONDITION_SCALE_AMOUNT
      Use with available fluent helpers to apply the ConditionScaleAmount field to query operations.
    • CONDITION_SCALE_AMOUNT_CURRENCY

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_SCALE_AMOUNT_CURRENCY
      Use with available fluent helpers to apply the ConditionScaleAmountCurrency field to query operations.
    • CONDITION_RATE_VALUE

      public static final SlsPrcgCndnRecordScaleField<BigDecimal> CONDITION_RATE_VALUE
      Use with available fluent helpers to apply the ConditionRateValue field to query operations.
    • CONDITION_RATE_VALUE_UNIT

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_RATE_VALUE_UNIT
      Use with available fluent helpers to apply the ConditionRateValueUnit field to query operations.
    • CONDITION_RATE_RATIO

      public static final SlsPrcgCndnRecordScaleField<BigDecimal> CONDITION_RATE_RATIO
      Use with available fluent helpers to apply the ConditionRateRatio field to query operations.
    • CONDITION_RATE_RATIO_UNIT

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_RATE_RATIO_UNIT
      Use with available fluent helpers to apply the ConditionRateRatioUnit field to query operations.
    • CONDITION_RATE_AMOUNT

      public static final SlsPrcgCndnRecordScaleField<BigDecimal> CONDITION_RATE_AMOUNT
      Use with available fluent helpers to apply the ConditionRateAmount field to query operations.
    • CONDITION_CURRENCY

      public static final SlsPrcgCndnRecordScaleField<String> CONDITION_CURRENCY
      Use with available fluent helpers to apply the ConditionCurrency field to query operations.
    • E_TAG

      public static final SlsPrcgCndnRecordScaleField<String> E_TAG
      Use with available fluent helpers to apply the ETag field to query operations.
    • TO_SLS_PRCG_CNDN_RECD_SUPLMNT

      public static final SlsPrcgCndnRecordScaleOneToOneLink<SlsPrcgCndnRecdSuplmnt> TO_SLS_PRCG_CNDN_RECD_SUPLMNT
      Use with available fluent helpers to apply the to_SlsPrcgCndnRecdSuplmnt navigation property to query operations.
    • TO_SLS_PRCG_CONDITION_RECORD

      public static final SlsPrcgCndnRecordScaleOneToOneLink<SlsPrcgConditionRecord> TO_SLS_PRCG_CONDITION_RECORD
      Use with available fluent helpers to apply the to_SlsPrcgConditionRecord navigation property to query operations.
  • Constructor Details

    • SlsPrcgCndnRecordScale

      public SlsPrcgCndnRecordScale()
    • SlsPrcgCndnRecordScale

      public SlsPrcgCndnRecordScale(@Nullable String conditionRecord, @Nullable String conditionSequentialNumber, @Nullable String conditionScaleLine, @Nullable BigDecimal conditionScaleQuantity, @Nullable String conditionScaleQuantityUnit, @Nullable BigDecimal conditionScaleAmount, @Nullable String conditionScaleAmountCurrency, @Nullable BigDecimal conditionRateValue, @Nullable String conditionRateValueUnit, @Nullable BigDecimal conditionRateRatio, @Nullable String conditionRateRatioUnit, @Nullable BigDecimal conditionRateAmount, @Nullable String conditionCurrency, @Nullable String eTag, @Nullable SlsPrcgCndnRecdSuplmnt toSlsPrcgCndnRecdSuplmnt, @Nullable SlsPrcgConditionRecord toSlsPrcgConditionRecord)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ConditionRecord

      Parameters:
      conditionRecord - Number of Condition Record
    • setConditionSequentialNumber

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

      Original property name from the Odata EDM: ConditionSequentialNumber

      Parameters:
      conditionSequentialNumber - Sequential number of the condition
    • setConditionScaleLine

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

      Original property name from the Odata EDM: ConditionScaleLine

      Parameters:
      conditionScaleLine - Current number of the line scale
    • setConditionScaleQuantity

      public void setConditionScaleQuantity(@Nullable BigDecimal conditionScaleQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: ConditionScaleQuantity

      Parameters:
      conditionScaleQuantity - Condition Scale Quantity
    • setConditionScaleQuantityUnit

      public void setConditionScaleQuantityUnit(@Nullable String conditionScaleQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionScaleQuantityUnit

      Parameters:
      conditionScaleQuantityUnit - Condition Scale Unit of Measure
    • setConditionScaleAmount

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

      Original property name from the Odata EDM: ConditionScaleAmount

      Parameters:
      conditionScaleAmount - Scale Value
    • setConditionScaleAmountCurrency

      public void setConditionScaleAmountCurrency(@Nullable String conditionScaleAmountCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionScaleAmountCurrency

      Parameters:
      conditionScaleAmountCurrency - Scale Currency
    • setConditionRateValue

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

      Original property name from the Odata EDM: ConditionRateValue

      Parameters:
      conditionRateValue - Condition Amount or Percentage
    • setConditionRateValueUnit

      public void setConditionRateValueUnit(@Nullable String conditionRateValueUnit)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: ConditionRateValueUnit

      Parameters:
      conditionRateValueUnit - Condition Unit (Currency or Percentage)
    • setConditionRateRatio

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

      Original property name from the Odata EDM: ConditionRateRatio

      Parameters:
      conditionRateRatio - Condition Ratio (in Percent or Per Mille)
    • setConditionRateRatioUnit

      public void setConditionRateRatioUnit(@Nullable String conditionRateRatioUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionRateRatioUnit

      Parameters:
      conditionRateRatioUnit - Unit of Measure
    • setConditionRateAmount

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

      Original property name from the Odata EDM: ConditionRateAmount

      Parameters:
      conditionRateAmount - 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 - Condition Unit (Currency or Percentage)
    • setETag

      public void setETag(@Nullable String eTag)
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ETag

      Parameters:
      eTag - The eTag to set.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SlsPrcgCndnRecordScaleField<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> SlsPrcgCndnRecordScaleField<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<SlsPrcgCndnRecordScale>
    • setServicePathForFetch

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

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

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

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

      @Nullable public SlsPrcgCndnRecdSuplmnt fetchSlsPrcgCndnRecdSuplmnt()
      Fetches the SlsPrcgCndnRecdSuplmnt entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SlsPrcgCndnRecdSuplmnt.

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

      Returns:
      The single associated SlsPrcgCndnRecdSuplmnt 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.
    • getSlsPrcgCndnRecdSuplmntOrFetch

      @Nullable public SlsPrcgCndnRecdSuplmnt getSlsPrcgCndnRecdSuplmntOrFetch()
      Retrieval of associated SlsPrcgCndnRecdSuplmnt entity (one to one). This corresponds to the OData navigation property to_SlsPrcgCndnRecdSuplmnt.

      If the navigation property to_SlsPrcgCndnRecdSuplmnt of a queried SlsPrcgCndnRecordScale 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 SlsPrcgCndnRecdSuplmnt 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.
    • getSlsPrcgCndnRecdSuplmntIfPresent

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

      If the navigation property for an entity SlsPrcgCndnRecordScale 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_SlsPrcgCndnRecdSuplmnt is already loaded, the result will contain the SlsPrcgCndnRecdSuplmnt entity. If not, an Option with result state empty is returned.
    • setSlsPrcgCndnRecdSuplmnt

      public void setSlsPrcgCndnRecdSuplmnt(SlsPrcgCndnRecdSuplmnt value)
      Overwrites the associated SlsPrcgCndnRecdSuplmnt entity for the loaded navigation property to_SlsPrcgCndnRecdSuplmnt.
      Parameters:
      value - New SlsPrcgCndnRecdSuplmnt entity.
    • fetchSlsPrcgConditionRecord

      @Nullable public SlsPrcgConditionRecord fetchSlsPrcgConditionRecord()
      Fetches the SlsPrcgConditionRecord entity (one to one) associated with this entity. This corresponds to the OData navigation property to_SlsPrcgConditionRecord.

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

      Returns:
      The single associated SlsPrcgConditionRecord 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.
    • getSlsPrcgConditionRecordOrFetch

      @Nullable public SlsPrcgConditionRecord getSlsPrcgConditionRecordOrFetch()
      Retrieval of associated SlsPrcgConditionRecord entity (one to one). This corresponds to the OData navigation property to_SlsPrcgConditionRecord.

      If the navigation property to_SlsPrcgConditionRecord of a queried SlsPrcgCndnRecordScale 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 SlsPrcgConditionRecord 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.
    • getSlsPrcgConditionRecordIfPresent

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

      If the navigation property for an entity SlsPrcgCndnRecordScale 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_SlsPrcgConditionRecord is already loaded, the result will contain the SlsPrcgConditionRecord entity. If not, an Option with result state empty is returned.
    • setSlsPrcgConditionRecord

      public void setSlsPrcgConditionRecord(SlsPrcgConditionRecord value)
      Overwrites the associated SlsPrcgConditionRecord entity for the loaded navigation property to_SlsPrcgConditionRecord.
      Parameters:
      value - New SlsPrcgConditionRecord entity.
    • builder

      @Nonnull public static SlsPrcgCndnRecordScale.SlsPrcgCndnRecordScaleBuilder builder()
    • getConditionRecord

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

      Original property name from the Odata EDM: ConditionRecord

      Returns:
      Number of Condition Record
    • getConditionSequentialNumber

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

      Original property name from the Odata EDM: ConditionSequentialNumber

      Returns:
      Sequential number of the condition
    • getConditionScaleLine

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

      Original property name from the Odata EDM: ConditionScaleLine

      Returns:
      Current number of the line scale
    • getConditionScaleQuantity

      @Nullable public BigDecimal getConditionScaleQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: ConditionScaleQuantity

      Returns:
      Condition Scale Quantity
    • getConditionScaleQuantityUnit

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

      Original property name from the Odata EDM: ConditionScaleQuantityUnit

      Returns:
      Condition Scale Unit of Measure
    • getConditionScaleAmount

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

      Original property name from the Odata EDM: ConditionScaleAmount

      Returns:
      Scale Value
    • getConditionScaleAmountCurrency

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

      Original property name from the Odata EDM: ConditionScaleAmountCurrency

      Returns:
      Scale Currency
    • getConditionRateValue

      @Nullable public BigDecimal getConditionRateValue()
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: ConditionRateValue

      Returns:
      Condition Amount or Percentage
    • getConditionRateValueUnit

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

      Original property name from the Odata EDM: ConditionRateValueUnit

      Returns:
      Condition Unit (Currency or Percentage)
    • getConditionRateRatio

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

      Original property name from the Odata EDM: ConditionRateRatio

      Returns:
      Condition Ratio (in Percent or Per Mille)
    • getConditionRateRatioUnit

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

      Original property name from the Odata EDM: ConditionRateRatioUnit

      Returns:
      Unit of Measure
    • getConditionRateAmount

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

      Original property name from the Odata EDM: ConditionRateAmount

      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:
      Condition Unit (Currency or Percentage)
    • getETag

      @Nullable public String getETag()
      Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: ETag

      Returns:
      The eTag contained in this entity.
    • toString

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

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

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

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