Class SDDocumentReason
Original entity name from the Odata EDM: A_SDDocumentReasonType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of SDDocumentReason instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SDDocumentReasonSelectableSelector for all available fields of SDDocumentReason.static final SDDocumentReasonField<String>Use with available fluent helpers to apply the RetroBillingUsage field to query operations.static final SDDocumentReasonField<String>Use with available fluent helpers to apply the SDDocumentReason field to query operations.static final SDDocumentReasonField<String>Use with available fluent helpers to apply the SelfBillingValueItem field to query operations.static final SDDocumentReasonLink<RetroBillingUsageText>Use with available fluent helpers to apply the to_RetroBillingUsageText navigation property to query operations.static final SDDocumentReasonLink<SDDocumentReasonText>Use with available fluent helpers to apply the to_SDDocumentReasonText navigation property to query operations.static final SDDocumentReasonLink<SelfBillingValueItemText>Use with available fluent helpers to apply the to_SelfBillingValueItemText navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
changedOriginalFields -
Constructor Summary
ConstructorsConstructorDescriptionSDDocumentReason(String sDDocumentReason, String retroBillingUsage, String selfBillingValueItem, List<RetroBillingUsageText> toRetroBillingUsageText, List<SDDocumentReasonText> toSDDocumentReasonText, List<SelfBillingValueItemText> toSelfBillingValueItemText) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRetroBillingUsageText(RetroBillingUsageText... entity) Adds elements to the list of associated RetroBillingUsageText entities.voidaddSDDocumentReasonText(SDDocumentReasonText... entity) Adds elements to the list of associated SDDocumentReasonText entities.voidAdds elements to the list of associated SelfBillingValueItemText entities.voidattachToService(String servicePath, HttpDestinationProperties destination) builder()protected booleanbooleanFetches the RetroBillingUsageText entities (one to many) associated with this entity.Fetches the SDDocumentReasonText entities (one to many) associated with this entity.Fetches the SelfBillingValueItemText entities (one to many) associated with this entity.static <T,DomainT>
SDDocumentReasonField<T>field(String fieldName, TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.static <T> SDDocumentReasonField<T>Use with available fluent helpers to apply an extension field to query operations.protected voidprotected Stringprotected StringgetKey()Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<List<RetroBillingUsageText>>Retrieval of associated RetroBillingUsageText entities (one to many).Retrieval of associated RetroBillingUsageText entities (one to many).(Key Field) Constraints: Not nullable, Maximum length: 3io.vavr.control.Option<List<SDDocumentReasonText>>Retrieval of associated SDDocumentReasonText entities (one to many).Retrieval of associated SDDocumentReasonText entities (one to many).Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<List<SelfBillingValueItemText>>Retrieval of associated SelfBillingValueItemText entities (one to many).Retrieval of associated SelfBillingValueItemText entities (one to many).getType()inthashCode()voidsetRetroBillingUsage(String retroBillingUsage) Constraints: Not nullable, Maximum length: 1voidOverwrites the list of associated RetroBillingUsageText entities for the loaded navigation property to_RetroBillingUsageText.voidsetSDDocumentReason(String sDDocumentReason) (Key Field) Constraints: Not nullable, Maximum length: 3voidOverwrites the list of associated SDDocumentReasonText entities for the loaded navigation property to_SDDocumentReasonText.voidsetSelfBillingValueItem(String selfBillingValueItem) Constraints: Not nullable, Maximum length: 1voidOverwrites the list of associated SelfBillingValueItemText entities for the loaded navigation property to_SelfBillingValueItemText.protected voidsetServicePathForFetch(String servicePathForFetch) toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity
fetchFieldAsList, fetchFieldAsSingle, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odata.helper.VdmObject
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 SDDocumentReason. -
SD_DOCUMENT_REASON
Use with available fluent helpers to apply the SDDocumentReason field to query operations. -
RETRO_BILLING_USAGE
Use with available fluent helpers to apply the RetroBillingUsage field to query operations. -
SELF_BILLING_VALUE_ITEM
Use with available fluent helpers to apply the SelfBillingValueItem field to query operations. -
TO_RETRO_BILLING_USAGE_TEXT
Use with available fluent helpers to apply the to_RetroBillingUsageText navigation property to query operations. -
TO_SD_DOCUMENT_REASON_TEXT
Use with available fluent helpers to apply the to_SDDocumentReasonText navigation property to query operations. -
TO_SELF_BILLING_VALUE_ITEM_TEXT
Use with available fluent helpers to apply the to_SelfBillingValueItemText navigation property to query operations.
-
-
Constructor Details
-
SDDocumentReason
public SDDocumentReason() -
SDDocumentReason
public SDDocumentReason(@Nullable String sDDocumentReason, @Nullable String retroBillingUsage, @Nullable String selfBillingValueItem, List<RetroBillingUsageText> toRetroBillingUsageText, List<SDDocumentReasonText> toSDDocumentReasonText, List<SelfBillingValueItemText> toSelfBillingValueItemText)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<SDDocumentReason>
-
setSDDocumentReason
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: SDDocumentReason
- Parameters:
sDDocumentReason- Order Reason (Reason for the Business Transaction)
-
setRetroBillingUsage
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: RetroBillingUsage
- Parameters:
retroBillingUsage- Use of Order Reason for Retroactive Billing
-
setSelfBillingValueItem
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: SelfBillingValueItem
- Parameters:
selfBillingValueItem- Value Item for Self-Billing
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<SDDocumentReason>
-
getKey
- Overrides:
getKeyin classVdmObject<SDDocumentReason>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<SDDocumentReason>
-
fromMap
- Overrides:
fromMapin classVdmObject<SDDocumentReason>
-
field
@Nonnull public static <T> SDDocumentReasonField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.- Parameters:
fieldName- The name of the extension field as returned by the OData service.fieldType- The Java type to use for the extension field when performing value comparisons.- Returns:
- A representation of an extension field from this entity.
-
field
@Nonnull public static <T,DomainT> SDDocumentReasonField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T, DomainT> typeConverter) Use with available fluent helpers to apply an extension field to query operations.- Type Parameters:
T- The type of the extension field when performing value comparisons.DomainT- The type of the extension field as returned by the OData service.- Parameters:
typeConverter- A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the fieldfieldName- The name of the extension field as returned by the OData service.- Returns:
- A representation of an extension field from this entity, holding a reference to the given TypeConverter.
-
getDestinationForFetch
- Overrides:
getDestinationForFetchin classVdmEntity<SDDocumentReason>
-
setServicePathForFetch
- Overrides:
setServicePathForFetchin classVdmEntity<SDDocumentReason>
-
attachToService
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination) - Overrides:
attachToServicein classVdmEntity<SDDocumentReason>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<SDDocumentReason>
-
fetchRetroBillingUsageText
Fetches the RetroBillingUsageText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_RetroBillingUsageText.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated RetroBillingUsageText entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getRetroBillingUsageTextOrFetch
Retrieval of associated RetroBillingUsageText entities (one to many). This corresponds to the OData navigation property to_RetroBillingUsageText.If the navigation property to_RetroBillingUsageText of a queried SDDocumentReason 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.
- Returns:
- List of associated RetroBillingUsageText entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getRetroBillingUsageTextIfPresent
@Nonnull public io.vavr.control.Option<List<RetroBillingUsageText>> getRetroBillingUsageTextIfPresent()Retrieval of associated RetroBillingUsageText entities (one to many). This corresponds to the OData navigation property to_RetroBillingUsageText.If the navigation property for an entity SDDocumentReason 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 to_RetroBillingUsageText is already loaded, the result
will contain the RetroBillingUsageText entities. If not, an
Optionwith result stateemptyis returned.
-
setRetroBillingUsageText
Overwrites the list of associated RetroBillingUsageText entities for the loaded navigation property to_RetroBillingUsageText.If the navigation property to_RetroBillingUsageText of a queried SDDocumentReason 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 RetroBillingUsageText entities.
-
addRetroBillingUsageText
Adds elements to the list of associated RetroBillingUsageText entities. This corresponds to the OData navigation property to_RetroBillingUsageText.If the navigation property to_RetroBillingUsageText of a queried SDDocumentReason 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 RetroBillingUsageText entities.
-
fetchSDDocumentReasonText
Fetches the SDDocumentReasonText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SDDocumentReasonText.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SDDocumentReasonText entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getSDDocumentReasonTextOrFetch
Retrieval of associated SDDocumentReasonText entities (one to many). This corresponds to the OData navigation property to_SDDocumentReasonText.If the navigation property to_SDDocumentReasonText of a queried SDDocumentReason 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.
- Returns:
- List of associated SDDocumentReasonText entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getSDDocumentReasonTextIfPresent
@Nonnull public io.vavr.control.Option<List<SDDocumentReasonText>> getSDDocumentReasonTextIfPresent()Retrieval of associated SDDocumentReasonText entities (one to many). This corresponds to the OData navigation property to_SDDocumentReasonText.If the navigation property for an entity SDDocumentReason 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 to_SDDocumentReasonText is already loaded, the result
will contain the SDDocumentReasonText entities. If not, an
Optionwith result stateemptyis returned.
-
setSDDocumentReasonText
Overwrites the list of associated SDDocumentReasonText entities for the loaded navigation property to_SDDocumentReasonText.If the navigation property to_SDDocumentReasonText of a queried SDDocumentReason 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 SDDocumentReasonText entities.
-
addSDDocumentReasonText
Adds elements to the list of associated SDDocumentReasonText entities. This corresponds to the OData navigation property to_SDDocumentReasonText.If the navigation property to_SDDocumentReasonText of a queried SDDocumentReason 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 SDDocumentReasonText entities.
-
fetchSelfBillingValueItemText
Fetches the SelfBillingValueItemText entities (one to many) associated with this entity. This corresponds to the OData navigation property to_SelfBillingValueItemText.Please note: This method will not cache or persist the query results.
- Returns:
- List containing one or more associated SelfBillingValueItemText entities. If no entities are associated then an empty list is returned.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getSelfBillingValueItemTextOrFetch
Retrieval of associated SelfBillingValueItemText entities (one to many). This corresponds to the OData navigation property to_SelfBillingValueItemText.If the navigation property to_SelfBillingValueItemText of a queried SDDocumentReason 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.
- Returns:
- List of associated SelfBillingValueItemText entities.
- Throws:
com.sap.cloud.sdk.datamodel.odata.client.exception.ODataException- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and therefore has no ERP configuration context assigned. An entity is managed if it has been either retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or UPDATE call.
-
getSelfBillingValueItemTextIfPresent
@Nonnull public io.vavr.control.Option<List<SelfBillingValueItemText>> getSelfBillingValueItemTextIfPresent()Retrieval of associated SelfBillingValueItemText entities (one to many). This corresponds to the OData navigation property to_SelfBillingValueItemText.If the navigation property for an entity SDDocumentReason 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 to_SelfBillingValueItemText is already loaded, the
result will contain the SelfBillingValueItemText entities. If not, an
Optionwith result stateemptyis returned.
-
setSelfBillingValueItemText
Overwrites the list of associated SelfBillingValueItemText entities for the loaded navigation property to_SelfBillingValueItemText.If the navigation property to_SelfBillingValueItemText of a queried SDDocumentReason 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 SelfBillingValueItemText entities.
-
addSelfBillingValueItemText
Adds elements to the list of associated SelfBillingValueItemText entities. This corresponds to the OData navigation property to_SelfBillingValueItemText.If the navigation property to_SelfBillingValueItemText of a queried SDDocumentReason 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 SelfBillingValueItemText entities.
-
builder
-
getSDDocumentReason
(Key Field) Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: SDDocumentReason
- Returns:
- Order Reason (Reason for the Business Transaction)
-
getRetroBillingUsage
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: RetroBillingUsage
- Returns:
- Use of Order Reason for Retroactive Billing
-
getSelfBillingValueItem
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: SelfBillingValueItem
- Returns:
- Value Item for Self-Billing
-
toString
- Overrides:
toStringin classVdmObject<SDDocumentReason>
-
equals
- Overrides:
equalsin classVdmEntity<SDDocumentReason>
-
canEqual
- Overrides:
canEqualin classVdmEntity<SDDocumentReason>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<SDDocumentReason>
-