Class FreightOrderCharge
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: FreightOrderCharge_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of FreightOrderCharge instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<FreightOrderCharge>Selector for all available fields of FreightOrderCharge.static final SimpleProperty.Date<FreightOrderCharge>static final NavigationProperty.Single<FreightOrderCharge,FreightOrder> Use with available request builders to apply the _FreightOrder navigation property to query operations.Use with available request builders to apply the _FreightOrderChargeItem navigation property to query operations.static final SimpleProperty.String<FreightOrderCharge>static final SimpleProperty.DateTime<FreightOrderCharge>static final SimpleProperty.String<FreightOrderCharge>static final SimpleProperty.String<FreightOrderCharge>static final SimpleProperty.String<FreightOrderCharge>static final SimpleProperty.NumericDecimal<FreightOrderCharge>static final SimpleProperty.NumericDecimal<FreightOrderCharge>static final SimpleProperty.Guid<FreightOrderCharge>static final SimpleProperty.Guid<FreightOrderCharge>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionFreightOrderCharge(UUID transportationChargesObjUUID, UUID transportationOrderUUID, String transpChargePostingStatus, String transpChargeCalcStatus, String transpChargeDocumentCurrency, BigDecimal transpChrgTotalAmtInDocCrcy, String transpChargeLocalCurrency, BigDecimal transpChrgTotalAmtInLoclCrcy, OffsetDateTime transpChargeCalculationDateTme, LocalDate exchangeRateDate, FreightOrder to_FreightOrder, List<FreightOrderChargeItem> to_FreightOrderChargeItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFreightOrderChargeItem(FreightOrderChargeItem... entity) Adds elements to the list of associated FreightOrderChargeItem entities.builder()protected booleanbooleanprotected voidprotected Stringprotected StringConstraints: Nullableio.vavr.control.Option<List<FreightOrderChargeItem>>Retrieval of associated FreightOrderChargeItem entities (one to many).io.vavr.control.Option<FreightOrder>Retrieval of associated FreightOrder entity (one to one).protected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 2Constraints: NullableConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Precision: 31, Scale: 0Constraints: Not nullable, Precision: 31, Scale: 0(Key Field) Constraints: Not nullableConstraints: Not nullablegetType()inthashCode()voidsetExchangeRateDate(LocalDate exchangeRateDate) Constraints: NullablevoidsetFreightOrder(FreightOrder value) Overwrites the associated FreightOrder entity for the loaded navigation property _FreightOrder.voidOverwrites the list of associated FreightOrderChargeItem entities for the loaded navigation property _FreightOrderChargeItem.voidsetTranspChargeCalcStatus(String transpChargeCalcStatus) Constraints: Not nullable, Maximum length: 2voidsetTranspChargeCalculationDateTme(OffsetDateTime transpChargeCalculationDateTme) Constraints: NullablevoidsetTranspChargeDocumentCurrency(String transpChargeDocumentCurrency) Constraints: Not nullable, Maximum length: 3voidsetTranspChargeLocalCurrency(String transpChargeLocalCurrency) Constraints: Not nullable, Maximum length: 3voidsetTranspChargePostingStatus(String transpChargePostingStatus) Constraints: Not nullable, Maximum length: 2voidsetTranspChrgTotalAmtInDocCrcy(BigDecimal transpChrgTotalAmtInDocCrcy) Constraints: Not nullable, Precision: 31, Scale: 0voidsetTranspChrgTotalAmtInLoclCrcy(BigDecimal transpChrgTotalAmtInLoclCrcy) Constraints: Not nullable, Precision: 31, Scale: 0voidsetTransportationChargesObjUUID(UUID transportationChargesObjUUID) (Key Field) Constraints: Not nullablevoidsetTransportationOrderUUID(UUID transportationOrderUUID) Constraints: Not nullabletoString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of FreightOrderCharge. -
TRANSPORTATION_CHARGES_OBJ_UUID
-
TRANSPORTATION_ORDER_UUID
-
TRANSP_CHARGE_POSTING_STATUS
-
TRANSP_CHARGE_CALC_STATUS
-
TRANSP_CHARGE_DOCUMENT_CURRENCY
-
TRANSP_CHRG_TOTAL_AMT_IN_DOC_CRCY
public static final SimpleProperty.NumericDecimal<FreightOrderCharge> TRANSP_CHRG_TOTAL_AMT_IN_DOC_CRCY -
TRANSP_CHARGE_LOCAL_CURRENCY
-
TRANSP_CHRG_TOTAL_AMT_IN_LOCL_CRCY
public static final SimpleProperty.NumericDecimal<FreightOrderCharge> TRANSP_CHRG_TOTAL_AMT_IN_LOCL_CRCY -
TRANSP_CHARGE_CALCULATION_DATE_TME
-
EXCHANGE_RATE_DATE
-
TO__FREIGHT_ORDER
Use with available request builders to apply the _FreightOrder navigation property to query operations. -
TO__FREIGHT_ORDER_CHARGE_ITEM
public static final NavigationProperty.Collection<FreightOrderCharge,FreightOrderChargeItem> TO__FREIGHT_ORDER_CHARGE_ITEMUse with available request builders to apply the _FreightOrderChargeItem navigation property to query operations.
-
-
Constructor Details
-
FreightOrderCharge
public FreightOrderCharge() -
FreightOrderCharge
public FreightOrderCharge(@Nullable UUID transportationChargesObjUUID, @Nullable UUID transportationOrderUUID, @Nullable String transpChargePostingStatus, @Nullable String transpChargeCalcStatus, @Nullable String transpChargeDocumentCurrency, @Nullable BigDecimal transpChrgTotalAmtInDocCrcy, @Nullable String transpChargeLocalCurrency, @Nullable BigDecimal transpChrgTotalAmtInLoclCrcy, @Nullable OffsetDateTime transpChargeCalculationDateTme, @Nullable LocalDate exchangeRateDate, @Nullable FreightOrder to_FreightOrder, List<FreightOrderChargeItem> to_FreightOrderChargeItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<FreightOrderCharge>
-
setTransportationChargesObjUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TransportationChargesObjUUID
- Parameters:
transportationChargesObjUUID- Transportation Charge Object UUID
-
setTransportationOrderUUID
Constraints: Not nullableOriginal property name from the Odata EDM: TransportationOrderUUID
- Parameters:
transportationOrderUUID- NodeID
-
setTranspChargePostingStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspChargePostingStatus
- Parameters:
transpChargePostingStatus- Posting Status
-
setTranspChargeCalcStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspChargeCalcStatus
- Parameters:
transpChargeCalcStatus- Charge Calculation Status
-
setTranspChargeDocumentCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspChargeDocumentCurrency
- Parameters:
transpChargeDocumentCurrency- Document Currency
-
setTranspChrgTotalAmtInDocCrcy
Constraints: Not nullable, Precision: 31, Scale: 0Original property name from the Odata EDM: TranspChrgTotalAmtInDocCrcy
- Parameters:
transpChrgTotalAmtInDocCrcy- Total Amount in Document Currency
-
setTranspChargeLocalCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspChargeLocalCurrency
- Parameters:
transpChargeLocalCurrency- Local Currency
-
setTranspChrgTotalAmtInLoclCrcy
Constraints: Not nullable, Precision: 31, Scale: 0Original property name from the Odata EDM: TranspChrgTotalAmtInLoclCrcy
- Parameters:
transpChrgTotalAmtInLoclCrcy- Total amount in Local Currency
-
setTranspChargeCalculationDateTme
public void setTranspChargeCalculationDateTme(@Nullable OffsetDateTime transpChargeCalculationDateTme) Constraints: NullableOriginal property name from the Odata EDM: TranspChargeCalculationDateTme
- Parameters:
transpChargeCalculationDateTme- Calculation Date Timestamp
-
setExchangeRateDate
Constraints: NullableOriginal property name from the Odata EDM: ExchangeRateDate
- Parameters:
exchangeRateDate- Exchange Rate Date for Document Currency Conversion
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<FreightOrderCharge>
-
getKey
- Overrides:
getKeyin classVdmObject<FreightOrderCharge>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<FreightOrderCharge>
-
fromMap
- Overrides:
fromMapin classVdmObject<FreightOrderCharge>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<FreightOrderCharge>
-
getFreightOrderIfPresent
Retrieval of associated FreightOrder entity (one to one). This corresponds to the OData navigation property _FreightOrder.If the navigation property for an entity FreightOrderCharge has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _FreightOrder is already loaded, the result will
contain the FreightOrder entity. If not, an
Optionwith result stateemptyis returned.
-
setFreightOrder
Overwrites the associated FreightOrder entity for the loaded navigation property _FreightOrder.- Parameters:
value- New FreightOrder entity.
-
getFreightOrderChargeItemIfPresent
@Nonnull public io.vavr.control.Option<List<FreightOrderChargeItem>> getFreightOrderChargeItemIfPresent()Retrieval of associated FreightOrderChargeItem entities (one to many). This corresponds to the OData navigation property _FreightOrderChargeItem.If the navigation property for an entity FreightOrderCharge has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _FreightOrderChargeItem is already loaded, the result
will contain the FreightOrderChargeItem entities. If not, an
Optionwith result stateemptyis returned.
-
setFreightOrderChargeItem
Overwrites the list of associated FreightOrderChargeItem entities for the loaded navigation property _FreightOrderChargeItem.If the navigation property _FreightOrderChargeItem of a queried FreightOrderCharge 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 FreightOrderChargeItem entities.
-
addFreightOrderChargeItem
Adds elements to the list of associated FreightOrderChargeItem entities. This corresponds to the OData navigation property _FreightOrderChargeItem.If the navigation property _FreightOrderChargeItem of a queried FreightOrderCharge 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 FreightOrderChargeItem entities.
-
builder
-
getTransportationChargesObjUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: TransportationChargesObjUUID
- Returns:
- Transportation Charge Object UUID
-
getTransportationOrderUUID
Constraints: Not nullableOriginal property name from the Odata EDM: TransportationOrderUUID
- Returns:
- NodeID
-
getTranspChargePostingStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspChargePostingStatus
- Returns:
- Posting Status
-
getTranspChargeCalcStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: TranspChargeCalcStatus
- Returns:
- Charge Calculation Status
-
getTranspChargeDocumentCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspChargeDocumentCurrency
- Returns:
- Document Currency
-
getTranspChrgTotalAmtInDocCrcy
Constraints: Not nullable, Precision: 31, Scale: 0Original property name from the Odata EDM: TranspChrgTotalAmtInDocCrcy
- Returns:
- Total Amount in Document Currency
-
getTranspChargeLocalCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: TranspChargeLocalCurrency
- Returns:
- Local Currency
-
getTranspChrgTotalAmtInLoclCrcy
Constraints: Not nullable, Precision: 31, Scale: 0Original property name from the Odata EDM: TranspChrgTotalAmtInLoclCrcy
- Returns:
- Total amount in Local Currency
-
getTranspChargeCalculationDateTme
Constraints: NullableOriginal property name from the Odata EDM: TranspChargeCalculationDateTme
- Returns:
- Calculation Date Timestamp
-
getExchangeRateDate
Constraints: NullableOriginal property name from the Odata EDM: ExchangeRateDate
- Returns:
- Exchange Rate Date for Document Currency Conversion
-
toString
- Overrides:
toStringin classVdmObject<FreightOrderCharge>
-
equals
- Overrides:
equalsin classVdmEntity<FreightOrderCharge>
-
canEqual
- Overrides:
canEqualin classVdmEntity<FreightOrderCharge>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<FreightOrderCharge>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<FreightOrderCharge>
-