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

public class FreightBookingCharge extends VdmEntity<FreightBookingCharge> implements VdmEntitySet
Freight Booking Charge

Original entity name from the Odata EDM: FreightBookingCharge_Type

  • Field Details

  • Constructor Details

    • FreightBookingCharge

      public FreightBookingCharge()
    • FreightBookingCharge

      public FreightBookingCharge(@Nullable UUID transportationChargesObjUUID, @Nullable UUID transportationOrderUUID, @Nullable String transpChargeDocumentCurrency, @Nullable BigDecimal transpChrgTotalAmtInDocCrcy, @Nullable String transpChargeLocalCurrency, @Nullable BigDecimal transpChrgTotalAmtInLoclCrcy, @Nullable OffsetDateTime transpChargeCalculationDateTme, @Nullable LocalDate exchangeRateDate, @Nullable String transpChargePostingStatus, @Nullable String transpChargeCalcStatus, @Nullable FreightBooking to_FreightBooking, List<FreightBookingChargeItem> to_FreightBookingChargeItem)
  • Method Details

    • getType

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

      public void setTransportationChargesObjUUID(@Nullable UUID transportationChargesObjUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: TransportationChargesObjUUID

      Parameters:
      transportationChargesObjUUID - Transportation Charge Object UUID
    • setTransportationOrderUUID

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

      Original property name from the Odata EDM: TransportationOrderUUID

      Parameters:
      transportationOrderUUID - NodeID
    • setTranspChargeDocumentCurrency

      public void setTranspChargeDocumentCurrency(@Nullable String transpChargeDocumentCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspChargeDocumentCurrency

      Parameters:
      transpChargeDocumentCurrency - Document Currency
    • setTranspChrgTotalAmtInDocCrcy

      public void setTranspChrgTotalAmtInDocCrcy(@Nullable BigDecimal transpChrgTotalAmtInDocCrcy)
      Constraints: Not nullable, Precision: 31, Scale: 0

      Original property name from the Odata EDM: TranspChrgTotalAmtInDocCrcy

      Parameters:
      transpChrgTotalAmtInDocCrcy - Total Amount in Document Currency
    • setTranspChargeLocalCurrency

      public void setTranspChargeLocalCurrency(@Nullable String transpChargeLocalCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: TranspChargeLocalCurrency

      Parameters:
      transpChargeLocalCurrency - Local Currency
    • setTranspChrgTotalAmtInLoclCrcy

      public void setTranspChrgTotalAmtInLoclCrcy(@Nullable BigDecimal transpChrgTotalAmtInLoclCrcy)
      Constraints: Not nullable, Precision: 31, Scale: 0

      Original property name from the Odata EDM: TranspChrgTotalAmtInLoclCrcy

      Parameters:
      transpChrgTotalAmtInLoclCrcy - Total amount in Local Currency
    • setTranspChargeCalculationDateTme

      public void setTranspChargeCalculationDateTme(@Nullable OffsetDateTime transpChargeCalculationDateTme)
      Constraints: Nullable

      Original property name from the Odata EDM: TranspChargeCalculationDateTme

      Parameters:
      transpChargeCalculationDateTme - Calculation Date Timestamp
    • setExchangeRateDate

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

      Original property name from the Odata EDM: ExchangeRateDate

      Parameters:
      exchangeRateDate - Exchange Rate Date for Document Currency Conversion
    • setTranspChargePostingStatus

      public void setTranspChargePostingStatus(@Nullable String transpChargePostingStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspChargePostingStatus

      Parameters:
      transpChargePostingStatus - Posting Status
    • setTranspChargeCalcStatus

      public void setTranspChargeCalcStatus(@Nullable String transpChargeCalcStatus)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspChargeCalcStatus

      Parameters:
      transpChargeCalcStatus - Charge Calculation Status
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity FreightBookingCharge 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 _FreightBooking is already loaded, the result will contain the FreightBooking entity. If not, an Option with result state empty is returned.
    • setFreightBooking

      public void setFreightBooking(FreightBooking value)
      Overwrites the associated FreightBooking entity for the loaded navigation property _FreightBooking.
      Parameters:
      value - New FreightBooking entity.
    • getFreightBookingChargeItemIfPresent

      @Nonnull public io.vavr.control.Option<List<FreightBookingChargeItem>> getFreightBookingChargeItemIfPresent()
      Retrieval of associated FreightBookingChargeItem entities (one to many). This corresponds to the OData navigation property _FreightBookingChargeItem.

      If the navigation property for an entity FreightBookingCharge 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 _FreightBookingChargeItem is already loaded, the result will contain the FreightBookingChargeItem entities. If not, an Option with result state empty is returned.
    • setFreightBookingChargeItem

      public void setFreightBookingChargeItem(@Nonnull List<FreightBookingChargeItem> value)
      Overwrites the list of associated FreightBookingChargeItem entities for the loaded navigation property _FreightBookingChargeItem.

      If the navigation property _FreightBookingChargeItem of a queried FreightBookingCharge 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.

      Parameters:
      value - List of FreightBookingChargeItem entities.
    • addFreightBookingChargeItem

      public void addFreightBookingChargeItem(FreightBookingChargeItem... entity)
      Adds elements to the list of associated FreightBookingChargeItem entities. This corresponds to the OData navigation property _FreightBookingChargeItem.

      If the navigation property _FreightBookingChargeItem of a queried FreightBookingCharge 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.

      Parameters:
      entity - Array of FreightBookingChargeItem entities.
    • builder

      @Nonnull public static FreightBookingCharge.FreightBookingChargeBuilder builder()
    • getTransportationChargesObjUUID

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

      Original property name from the Odata EDM: TransportationChargesObjUUID

      Returns:
      Transportation Charge Object UUID
    • getTransportationOrderUUID

      @Nullable public UUID getTransportationOrderUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: TransportationOrderUUID

      Returns:
      NodeID
    • getTranspChargeDocumentCurrency

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

      Original property name from the Odata EDM: TranspChargeDocumentCurrency

      Returns:
      Document Currency
    • getTranspChrgTotalAmtInDocCrcy

      @Nullable public BigDecimal getTranspChrgTotalAmtInDocCrcy()
      Constraints: Not nullable, Precision: 31, Scale: 0

      Original property name from the Odata EDM: TranspChrgTotalAmtInDocCrcy

      Returns:
      Total Amount in Document Currency
    • getTranspChargeLocalCurrency

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

      Original property name from the Odata EDM: TranspChargeLocalCurrency

      Returns:
      Local Currency
    • getTranspChrgTotalAmtInLoclCrcy

      @Nullable public BigDecimal getTranspChrgTotalAmtInLoclCrcy()
      Constraints: Not nullable, Precision: 31, Scale: 0

      Original property name from the Odata EDM: TranspChrgTotalAmtInLoclCrcy

      Returns:
      Total amount in Local Currency
    • getTranspChargeCalculationDateTme

      @Nullable public OffsetDateTime getTranspChargeCalculationDateTme()
      Constraints: Nullable

      Original property name from the Odata EDM: TranspChargeCalculationDateTme

      Returns:
      Calculation Date Timestamp
    • getExchangeRateDate

      @Nullable public LocalDate getExchangeRateDate()
      Constraints: Nullable

      Original property name from the Odata EDM: ExchangeRateDate

      Returns:
      Exchange Rate Date for Document Currency Conversion
    • getTranspChargePostingStatus

      @Nullable public String getTranspChargePostingStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspChargePostingStatus

      Returns:
      Posting Status
    • getTranspChargeCalcStatus

      @Nullable public String getTranspChargeCalcStatus()
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: TranspChargeCalcStatus

      Returns:
      Charge Calculation Status
    • toString

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

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

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

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

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