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

public class SrvcContrItemPriceElement extends VdmEntity<SrvcContrItemPriceElement> implements VdmEntitySet
Price Element of Service Contract Item

Original entity name from the Odata EDM: SrvcContrItemPriceElement_Type

  • Field Details

  • Constructor Details

    • SrvcContrItemPriceElement

      public SrvcContrItemPriceElement()
    • SrvcContrItemPriceElement

      public SrvcContrItemPriceElement(@Nullable String serviceContract, @Nullable String serviceContractItem, @Nullable String pricingProcedureStep, @Nullable String pricingProcedureCounter, @Nullable String conditionType, @Nullable BigDecimal conditionRateValue, @Nullable String conditionCurrency, @Nullable BigDecimal conditionQuantity, @Nullable String conditionQuantityUnitSAPCode, @Nullable String conditionQuantityUnitISOCode, @Nullable String conditionInactiveReason, @Nullable ServiceContractItem to_Item, @Nullable ServiceContract to_ServiceContract)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: ServiceContract

      Parameters:
      serviceContract - Transaction ID
    • setServiceContractItem

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

      Original property name from the Odata EDM: ServiceContractItem

      Parameters:
      serviceContractItem - Shortened Item Number in Document
    • 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
    • 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: 3

      Original property name from the Odata EDM: ConditionCurrency

      Parameters:
      conditionCurrency - Currency Key
    • setConditionQuantity

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

      Original property name from the Odata EDM: ConditionQuantity

      Parameters:
      conditionQuantity - Condition Pricing Unit
    • setConditionQuantityUnitSAPCode

      public void setConditionQuantityUnitSAPCode(@Nullable String conditionQuantityUnitSAPCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityUnitSAPCode

      Parameters:
      conditionQuantityUnitSAPCode - Condition Unit in the Document
    • setConditionQuantityUnitISOCode

      public void setConditionQuantityUnitISOCode(@Nullable String conditionQuantityUnitISOCode)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: ConditionQuantityUnitISOCode

      Parameters:
      conditionQuantityUnitISOCode - ISO Code for Unit of Measurement
    • 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
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrvcContrItemPriceElement 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 _Item is already loaded, the result will contain the ServiceContractItem entity. If not, an Option with result state empty is returned.
    • setItem

      public void setItem(ServiceContractItem value)
      Overwrites the associated ServiceContractItem entity for the loaded navigation property _Item.
      Parameters:
      value - New ServiceContractItem entity.
    • getServiceContractIfPresent

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

      If the navigation property for an entity SrvcContrItemPriceElement 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 _ServiceContract is already loaded, the result will contain the ServiceContract entity. If not, an Option with result state empty is returned.
    • setServiceContract

      public void setServiceContract(ServiceContract value)
      Overwrites the associated ServiceContract entity for the loaded navigation property _ServiceContract.
      Parameters:
      value - New ServiceContract entity.
    • builder

    • getServiceContract

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

      Original property name from the Odata EDM: ServiceContract

      Returns:
      Transaction ID
    • getServiceContractItem

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

      Original property name from the Odata EDM: ServiceContractItem

      Returns:
      Shortened Item Number in Document
    • 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
    • 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: 3

      Original property name from the Odata EDM: ConditionCurrency

      Returns:
      Currency Key
    • getConditionQuantity

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

      Original property name from the Odata EDM: ConditionQuantity

      Returns:
      Condition Pricing Unit
    • getConditionQuantityUnitSAPCode

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

      Original property name from the Odata EDM: ConditionQuantityUnitSAPCode

      Returns:
      Condition Unit in the Document
    • getConditionQuantityUnitISOCode

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

      Original property name from the Odata EDM: ConditionQuantityUnitISOCode

      Returns:
      ISO Code for Unit of Measurement
    • getConditionInactiveReason

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

      Original property name from the Odata EDM: ConditionInactiveReason

      Returns:
      Condition is Inactive
    • toString

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

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

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

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

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