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

public class FrtOrdChrgItmExchRate extends VdmEntity<FrtOrdChrgItmExchRate> implements VdmEntitySet
Freight Order Charge Item Exchange Rate

Original entity name from the Odata EDM: FrtOrdChrgItmExchRate_Type

  • Field Details

  • Constructor Details

    • FrtOrdChrgItmExchRate

      public FrtOrdChrgItmExchRate()
    • FrtOrdChrgItmExchRate

      public FrtOrdChrgItmExchRate(@Nullable UUID transpChrgExchangeRateUUID, @Nullable UUID transpChargeItemUUID, @Nullable UUID transportationOrderUUID, @Nullable String sourceCurrency, @Nullable String targetCurrency, @Nullable BigDecimal transpChrgExchangeRate, @Nullable String transpChrgExchangeRateType, @Nullable LocalDate exchangeRateDate, @Nullable FreightOrder to_FreightOrder, @Nullable FreightOrderChargeItem to_FreightOrderChargeItem)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: TranspChrgExchangeRateUUID

      Parameters:
      transpChrgExchangeRateUUID - NodeID
    • setTranspChargeItemUUID

      public void setTranspChargeItemUUID(@Nullable UUID transpChargeItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemUUID

      Parameters:
      transpChargeItemUUID - 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
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FrtOrdChrgItmExchRate 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 _FreightOrderChargeItem is already loaded, the result will contain the FreightOrderChargeItem entity. If not, an Option with result state empty is returned.
    • setFreightOrderChargeItem

      public void setFreightOrderChargeItem(FreightOrderChargeItem value)
      Overwrites the associated FreightOrderChargeItem entity for the loaded navigation property _FreightOrderChargeItem.
      Parameters:
      value - New FreightOrderChargeItem entity.
    • builder

      @Nonnull public static FrtOrdChrgItmExchRate.FrtOrdChrgItmExchRateBuilder builder()
    • getTranspChrgExchangeRateUUID

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

      Original property name from the Odata EDM: TranspChrgExchangeRateUUID

      Returns:
      NodeID
    • getTranspChargeItemUUID

      @Nullable public UUID getTranspChargeItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TranspChargeItemUUID

      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
    • toString

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

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

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

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

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