Class Requisition
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: RequisitionType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of Requisition instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<Requisition,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<Requisition>Selector for all available fields of Requisition.static final SimpleProperty.DateTime<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.DateTime<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.String<Requisition>static final SimpleProperty.Guid<Requisition>static final SimpleProperty.NumericDecimal<Requisition>static final SimpleProperty.Date<Requisition>static final SimpleProperty.String<Requisition>static final NavigationProperty.Collection<Requisition,PaymentStrategy> Use with available request builders to apply the _PaymentStrategy navigation property to query operations.static final NavigationProperty.Collection<Requisition,RequisitionItem> Use with available request builders to apply the _RequisitionItem navigation property to query operations.static final SimpleProperty.String<Requisition>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionRequisition(UUID paymentRequisitionUUID, String paymentRequisitionNumber, String companyCode, String supplier, String paymentRequisitionStatus, LocalDate plannedPaymentDate, String paymentRequisitionPriority, BigDecimal paytRequisitionAmtInTransCrcy, String currency, String paymentRequisitionType, String paymentMethod, String noteText, String workflowApproverNote, String paymentDifferenceReason, OffsetDateTime creationDateTime, OffsetDateTime changedOnDateTime, Collection<SAP__Message> _Messages, List<PaymentStrategy> to_PaymentStrategy, List<RequisitionItem> to_RequisitionItem) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPaymentStrategy(PaymentStrategy... entity) Adds elements to the list of associated PaymentStrategy entities.voidaddRequisitionItem(RequisitionItem... entity) Adds elements to the list of associated RequisitionItem entities.Action that can be applied to any entity object of this class.builder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Nullable, Precision: 7Constraints: Not nullable, Maximum length: 4Constraints: Nullable, Precision: 7Constraints: Not nullable, Maximum length: 3protected Stringprotected Stringprotected ODataEntityKeygetKey()Constraints: Not nullable, Maximum length: 200Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 10Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 1(Key Field) Constraints: Not nullableio.vavr.control.Option<List<PaymentStrategy>>Retrieval of associated PaymentStrategy entities (one to many).Constraints: Not nullable, Precision: 23, Scale: 0Constraints: Nullableio.vavr.control.Option<List<RequisitionItem>>Retrieval of associated RequisitionItem entities (one to many).Constraints: Not nullable, Maximum length: 10getType()Constraints: Not nullable, Maximum length: 200inthashCode()rejectPaymentRequisition(String workflowApproverNote) Action that can be applied to any entity object of this class.voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetChangedOnDateTime(OffsetDateTime changedOnDateTime) Constraints: Nullable, Precision: 7voidsetCompanyCode(String companyCode) Constraints: Not nullable, Maximum length: 4voidsetCreationDateTime(OffsetDateTime creationDateTime) Constraints: Nullable, Precision: 7voidsetCurrency(String currency) Constraints: Not nullable, Maximum length: 3voidsetNoteText(String noteText) Constraints: Not nullable, Maximum length: 200voidsetPaymentDifferenceReason(String paymentDifferenceReason) Constraints: Not nullable, Maximum length: 3voidsetPaymentMethod(String paymentMethod) Constraints: Not nullable, Maximum length: 1voidsetPaymentRequisitionNumber(String paymentRequisitionNumber) Constraints: Not nullable, Maximum length: 10voidsetPaymentRequisitionPriority(String paymentRequisitionPriority) Constraints: Not nullable, Maximum length: 1voidsetPaymentRequisitionStatus(String paymentRequisitionStatus) Constraints: Not nullable, Maximum length: 2voidsetPaymentRequisitionType(String paymentRequisitionType) Constraints: Not nullable, Maximum length: 1voidsetPaymentRequisitionUUID(UUID paymentRequisitionUUID) (Key Field) Constraints: Not nullablevoidsetPaymentStrategy(List<PaymentStrategy> value) Overwrites the list of associated PaymentStrategy entities for the loaded navigation property _PaymentStrategy.voidsetPaytRequisitionAmtInTransCrcy(BigDecimal paytRequisitionAmtInTransCrcy) Constraints: Not nullable, Precision: 23, Scale: 0voidsetPlannedPaymentDate(LocalDate plannedPaymentDate) Constraints: NullablevoidsetRequisitionItem(List<RequisitionItem> value) Overwrites the list of associated RequisitionItem entities for the loaded navigation property _RequisitionItem.voidsetSupplier(String supplier) Constraints: Not nullable, Maximum length: 10voidsetWorkflowApproverNote(String workflowApproverNote) Constraints: Not nullable, Maximum length: 200submit()Action that can be applied to any entity object of this class.toString()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 Requisition. -
PAYMENT_REQUISITION_UUID
-
PAYMENT_REQUISITION_NUMBER
-
COMPANY_CODE
-
SUPPLIER
-
PAYMENT_REQUISITION_STATUS
-
PLANNED_PAYMENT_DATE
-
PAYMENT_REQUISITION_PRIORITY
-
PAYT_REQUISITION_AMT_IN_TRANS_CRCY
-
CURRENCY
-
PAYMENT_REQUISITION_TYPE
-
PAYMENT_METHOD
-
NOTE_TEXT
-
WORKFLOW_APPROVER_NOTE
-
PAYMENT_DIFFERENCE_REASON
-
CREATION_DATE_TIME
-
CHANGED_ON_DATE_TIME
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__PAYMENT_STRATEGY
Use with available request builders to apply the _PaymentStrategy navigation property to query operations. -
TO__REQUISITION_ITEM
Use with available request builders to apply the _RequisitionItem navigation property to query operations.
-
-
Constructor Details
-
Requisition
public Requisition() -
Requisition
public Requisition(@Nullable UUID paymentRequisitionUUID, @Nullable String paymentRequisitionNumber, @Nullable String companyCode, @Nullable String supplier, @Nullable String paymentRequisitionStatus, @Nullable LocalDate plannedPaymentDate, @Nullable String paymentRequisitionPriority, @Nullable BigDecimal paytRequisitionAmtInTransCrcy, @Nullable String currency, @Nullable String paymentRequisitionType, @Nullable String paymentMethod, @Nullable String noteText, @Nullable String workflowApproverNote, @Nullable String paymentDifferenceReason, @Nullable OffsetDateTime creationDateTime, @Nullable OffsetDateTime changedOnDateTime, @Nullable Collection<SAP__Message> _Messages, List<PaymentStrategy> to_PaymentStrategy, List<RequisitionItem> to_RequisitionItem)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<Requisition>
-
setPaymentRequisitionUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: PaymentRequisitionUUID
- Parameters:
paymentRequisitionUUID- Payment Requisition UUID
-
setPaymentRequisitionNumber
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PaymentRequisitionNumber
- Parameters:
paymentRequisitionNumber- Payment Requisition Number
-
setCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Parameters:
companyCode- Company Code
-
setSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Parameters:
supplier- Account Number of Supplier
-
setPaymentRequisitionStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: PaymentRequisitionStatus
- Parameters:
paymentRequisitionStatus- Payment Requisition Status
-
setPlannedPaymentDate
Constraints: NullableOriginal property name from the Odata EDM: PlannedPaymentDate
- Parameters:
plannedPaymentDate- Planned Payment Date
-
setPaymentRequisitionPriority
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentRequisitionPriority
- Parameters:
paymentRequisitionPriority- Priority
-
setPaytRequisitionAmtInTransCrcy
Constraints: Not nullable, Precision: 23, Scale: 0Original property name from the Odata EDM: PaytRequisitionAmtInTransCrcy
- Parameters:
paytRequisitionAmtInTransCrcy- Payment Requisition Amount
-
setCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Currency
- Parameters:
currency- Currency Key
-
setPaymentRequisitionType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentRequisitionType
- Parameters:
paymentRequisitionType- Payment Requisition Type
-
setPaymentMethod
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentMethod
- Parameters:
paymentMethod- Preferred Payment Method
-
setNoteText
Constraints: Not nullable, Maximum length: 200Original property name from the Odata EDM: NoteText
- Parameters:
noteText- Remark
-
setWorkflowApproverNote
Constraints: Not nullable, Maximum length: 200Original property name from the Odata EDM: WorkflowApproverNote
- Parameters:
workflowApproverNote- Reject Reason
-
setPaymentDifferenceReason
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PaymentDifferenceReason
- Parameters:
paymentDifferenceReason- Reason Code for Payment Differences
-
setCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Parameters:
creationDateTime- Creation Date and Time
-
setChangedOnDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: ChangedOnDateTime
- Parameters:
changedOnDateTime- Change Date and Time
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<Requisition>
-
getKey
- Overrides:
getKeyin classVdmObject<Requisition>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<Requisition>
-
fromMap
- Overrides:
fromMapin classVdmObject<Requisition>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<Requisition>
-
getPaymentStrategyIfPresent
Retrieval of associated PaymentStrategy entities (one to many). This corresponds to the OData navigation property _PaymentStrategy.If the navigation property for an entity Requisition 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 _PaymentStrategy is already loaded, the result will
contain the PaymentStrategy entities. If not, an
Optionwith result stateemptyis returned.
-
setPaymentStrategy
Overwrites the list of associated PaymentStrategy entities for the loaded navigation property _PaymentStrategy.If the navigation property _PaymentStrategy of a queried Requisition 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 PaymentStrategy entities.
-
addPaymentStrategy
Adds elements to the list of associated PaymentStrategy entities. This corresponds to the OData navigation property _PaymentStrategy.If the navigation property _PaymentStrategy of a queried Requisition 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 PaymentStrategy entities.
-
getRequisitionItemIfPresent
Retrieval of associated RequisitionItem entities (one to many). This corresponds to the OData navigation property _RequisitionItem.If the navigation property for an entity Requisition 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 _RequisitionItem is already loaded, the result will
contain the RequisitionItem entities. If not, an
Optionwith result stateemptyis returned.
-
setRequisitionItem
Overwrites the list of associated RequisitionItem entities for the loaded navigation property _RequisitionItem.If the navigation property _RequisitionItem of a queried Requisition 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 RequisitionItem entities.
-
addRequisitionItem
Adds elements to the list of associated RequisitionItem entities. This corresponds to the OData navigation property _RequisitionItem.If the navigation property _RequisitionItem of a queried Requisition 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 RequisitionItem entities.
-
approvePaymentRequisition
@Nonnull public static BoundAction.SingleToSingle<Requisition,Requisition> approvePaymentRequisition()Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
rejectPaymentRequisition
@Nonnull public static BoundAction.SingleToSingle<Requisition,Requisition> rejectPaymentRequisition(@Nonnull String workflowApproverNote) Action that can be applied to any entity object of this class.- Parameters:
workflowApproverNote- Constraints: Not nullable, Maximum length: 200Original parameter name from the Odata EDM: WorkflowApproverNote
- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
submit
Action that can be applied to any entity object of this class.- Returns:
- Action object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyAction(thisAction)API.
-
builder
-
getPaymentRequisitionUUID
(Key Field) Constraints: Not nullableOriginal property name from the Odata EDM: PaymentRequisitionUUID
- Returns:
- Payment Requisition UUID
-
getPaymentRequisitionNumber
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: PaymentRequisitionNumber
- Returns:
- Payment Requisition Number
-
getCompanyCode
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: CompanyCode
- Returns:
- Company Code
-
getSupplier
Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: Supplier
- Returns:
- Account Number of Supplier
-
getPaymentRequisitionStatus
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: PaymentRequisitionStatus
- Returns:
- Payment Requisition Status
-
getPlannedPaymentDate
Constraints: NullableOriginal property name from the Odata EDM: PlannedPaymentDate
- Returns:
- Planned Payment Date
-
getPaymentRequisitionPriority
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentRequisitionPriority
- Returns:
- Priority
-
getPaytRequisitionAmtInTransCrcy
Constraints: Not nullable, Precision: 23, Scale: 0Original property name from the Odata EDM: PaytRequisitionAmtInTransCrcy
- Returns:
- Payment Requisition Amount
-
getCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Currency
- Returns:
- Currency Key
-
getPaymentRequisitionType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentRequisitionType
- Returns:
- Payment Requisition Type
-
getPaymentMethod
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PaymentMethod
- Returns:
- Preferred Payment Method
-
getNoteText
Constraints: Not nullable, Maximum length: 200Original property name from the Odata EDM: NoteText
- Returns:
- Remark
-
getWorkflowApproverNote
Constraints: Not nullable, Maximum length: 200Original property name from the Odata EDM: WorkflowApproverNote
- Returns:
- Reject Reason
-
getPaymentDifferenceReason
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: PaymentDifferenceReason
- Returns:
- Reason Code for Payment Differences
-
getCreationDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: CreationDateTime
- Returns:
- Creation Date and Time
-
getChangedOnDateTime
Constraints: Nullable, Precision: 7Original property name from the Odata EDM: ChangedOnDateTime
- Returns:
- Change Date and Time
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<Requisition>
-
equals
- Overrides:
equalsin classVdmEntity<Requisition>
-
canEqual
- Overrides:
canEqualin classVdmEntity<Requisition>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<Requisition>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<Requisition>
-