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

public class FrtOrdChrgElmntExchRate extends VdmEntity<FrtOrdChrgElmntExchRate> implements VdmEntitySet
Freight Order Charge Element Exch. Rate

Original entity name from the Odata EDM: FrtOrdChrgElmntExchRate_Type

  • Field Details

  • Constructor Details

    • FrtOrdChrgElmntExchRate

      public FrtOrdChrgElmntExchRate()
    • FrtOrdChrgElmntExchRate

      public FrtOrdChrgElmntExchRate(@Nullable UUID transpChrgExchangeRateUUID, @Nullable UUID transpChargeItemElementUUID, @Nullable UUID transportationOrderUUID, @Nullable String sourceCurrency, @Nullable String targetCurrency, @Nullable BigDecimal transpChrgExchangeRate, @Nullable String transpChrgExchangeRateType, @Nullable LocalDate exchangeRateDate, @Nullable Boolean transpExchRateDateIsMnllyChgd, @Nullable Boolean transpExchRateIsManuallyChgd, @Nullable FreightOrder to_FreightOrder, @Nullable FrtOrdChrgElement to_FrtOrdChrgElement)
  • Method Details

    • getType

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

      public void setTranspChrgExchangeRateUUID(@Nullable UUID transpChrgExchangeRateUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspChrgExchangeRateUUID

      Parameters:
      transpChrgExchangeRateUUID - NodeID
    • setTranspChargeItemElementUUID

      public void setTranspChargeItemElementUUID(@Nullable UUID transpChargeItemElementUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemElementUUID

      Parameters:
      transpChargeItemElementUUID - NodeID
    • setTransportationOrderUUID

      public void setTransportationOrderUUID(@Nullable UUID transportationOrderUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Parameters:
      transportationOrderUUID - NodeID
    • setSourceCurrency

      public void setSourceCurrency(@Nullable String sourceCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: SourceCurrency

      Parameters:
      sourceCurrency - Currency (SAP-Internal)
    • setTargetCurrency

      public void setTargetCurrency(@Nullable String targetCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TargetCurrency

      Parameters:
      targetCurrency - Currency (SAP-Internal)
    • setTranspChrgExchangeRate

      public void setTranspChrgExchangeRate(@Nullable BigDecimal transpChrgExchangeRate)
      Constraints: Not nullable, Precision: 28, Scale: 14

      Original property name from the Odata EDM: TranspChrgExchangeRate

      Parameters:
      transpChrgExchangeRate - Exchange Rate
    • setTranspChrgExchangeRateType

      public void setTranspChrgExchangeRateType(@Nullable String transpChrgExchangeRateType)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: TranspChrgExchangeRateType

      Parameters:
      transpChrgExchangeRateType - Exchange Rate Type
    • setExchangeRateDate

      public void setExchangeRateDate(@Nullable LocalDate exchangeRateDate)
      Constraints: Nullable

      Original property name from the Odata EDM: ExchangeRateDate

      Parameters:
      exchangeRateDate - Exchange Rate Quote Date
    • setTranspExchRateDateIsMnllyChgd

      public void setTranspExchRateDateIsMnllyChgd(@Nullable Boolean transpExchRateDateIsMnllyChgd)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspExchRateDateIsMnllyChgd

      Parameters:
      transpExchRateDateIsMnllyChgd - Manually-Changed Exchange Rate Date
    • setTranspExchRateIsManuallyChgd

      public void setTranspExchRateIsManuallyChgd(@Nullable Boolean transpExchRateIsManuallyChgd)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspExchRateIsManuallyChgd

      Parameters:
      transpExchRateIsManuallyChgd - Boolean Variable (X = True, - = False, Space = Unknown)
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FrtOrdChrgElmntExchRate 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 _FreightOrder is already loaded, the result will contain the FreightOrder entity. If not, an Option with result state empty is returned.
    • setFreightOrder

      public void setFreightOrder(FreightOrder value)
      Overwrites the associated FreightOrder entity for the loaded navigation property _FreightOrder.
      Parameters:
      value - New FreightOrder entity.
    • getFrtOrdChrgElementIfPresent

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

      If the navigation property for an entity FrtOrdChrgElmntExchRate 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 _FrtOrdChrgElement is already loaded, the result will contain the FrtOrdChrgElement entity. If not, an Option with result state empty is returned.
    • setFrtOrdChrgElement

      public void setFrtOrdChrgElement(FrtOrdChrgElement value)
      Overwrites the associated FrtOrdChrgElement entity for the loaded navigation property _FrtOrdChrgElement.
      Parameters:
      value - New FrtOrdChrgElement entity.
    • builder

    • getTranspChrgExchangeRateUUID

      @Nullable public UUID getTranspChrgExchangeRateUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TranspChrgExchangeRateUUID

      Returns:
      NodeID
    • getTranspChargeItemElementUUID

      @Nullable public UUID getTranspChargeItemElementUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemElementUUID

      Returns:
      NodeID
    • getTransportationOrderUUID

      @Nullable public UUID getTransportationOrderUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Returns:
      NodeID
    • getSourceCurrency

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

      Original property name from the Odata EDM: SourceCurrency

      Returns:
      Currency (SAP-Internal)
    • getTargetCurrency

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

      Original property name from the Odata EDM: TargetCurrency

      Returns:
      Currency (SAP-Internal)
    • getTranspChrgExchangeRate

      @Nullable public BigDecimal getTranspChrgExchangeRate()
      Constraints: Not nullable, Precision: 28, Scale: 14

      Original property name from the Odata EDM: TranspChrgExchangeRate

      Returns:
      Exchange Rate
    • getTranspChrgExchangeRateType

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

      Original property name from the Odata EDM: TranspChrgExchangeRateType

      Returns:
      Exchange Rate Type
    • getExchangeRateDate

      @Nullable public LocalDate getExchangeRateDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ExchangeRateDate

      Returns:
      Exchange Rate Quote Date
    • getTranspExchRateDateIsMnllyChgd

      @Nullable public Boolean getTranspExchRateDateIsMnllyChgd()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspExchRateDateIsMnllyChgd

      Returns:
      Manually-Changed Exchange Rate Date
    • getTranspExchRateIsManuallyChgd

      @Nullable public Boolean getTranspExchRateIsManuallyChgd()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspExchRateIsManuallyChgd

      Returns:
      Boolean Variable (X = True, - = False, Space = Unknown)
    • toString

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

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

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

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

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