Class ContractAccount
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ContractAccountType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ContractAccount instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ComplexProperty.Collection<ContractAccount,SAP__Message> Use with available request builders to apply the SAP__Messages complex property to query operations.static final SimpleProperty<ContractAccount>Selector for all available fields of ContractAccount.static final SimpleProperty.String<ContractAccount>static final SimpleProperty.String<ContractAccount>static final SimpleProperty.String<ContractAccount>static final SimpleProperty.String<ContractAccount>static final SimpleProperty.String<ContractAccount>static final SimpleProperty.String<ContractAccount>static final SimpleProperty.Date<ContractAccount>static final SimpleProperty.Boolean<ContractAccount>static final SimpleProperty.Date<ContractAccount>static final SimpleProperty.String<ContractAccount>Use with available request builders to apply the _ContractAccountPartner navigation property to query operations.Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionContractAccount(String contractAccount, LocalDate creationDate, String createdByUser, Boolean isMarkedForDeletion, LocalDate lastChangeDate, String lastChangedByUser, String cAApplicationArea, String contractAccountCategory, String contractAccountExtReference, String contractAccountName, Collection<SAP__Message> _Messages, List<ContractAccountPartner> to_ContractAccountPartner) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContractAccountPartner(ContractAccountPartner... entity) Adds elements to the list of associated ContractAccountPartner entities.builder()protected booleanbooleanprotected voidConstraints: Not nullableConstraints: Not nullable, Maximum length: 1(Key Field) Constraints: Not nullable, Maximum length: 12Constraints: Not nullable, Maximum length: 2Constraints: Not nullable, Maximum length: 20Constraints: Not nullable, Maximum length: 35io.vavr.control.Option<List<ContractAccountPartner>>Retrieval of associated ContractAccountPartner entities (one to many).Constraints: Not nullable, Maximum length: 12Constraints: Nullableprotected Stringprotected StringConstraints: Not nullableprotected ODataEntityKeygetKey()Constraints: NullableConstraints: Not nullable, Maximum length: 12getType()inthashCode()static BoundFunction.SingleToCollection<ContractAccount,ContractAccountRetrieveAccountBalanceResult_Type> retrieveAccountBalance(String businessPartner, String cAContract, Boolean clearedDocItemsAreSelected, Boolean statisticalDocItemsAreSelected, LocalDate docOpenItemReconstructionDate, Boolean instlmntPlnOriglDocItmsAreSeld, Boolean collvBillOriglDocItmsAreSeld, String cAMainTransaction, String cASubTransaction, String cAStatisticalItemCode, String cAClearingReason, String companyCode, LocalDate fromDocumentDate, LocalDate toDocumentDate, LocalDate fromPostingDate, LocalDate toPostingDate, LocalDate fromNetDueDate, LocalDate toNetDueDate, LocalDate fromCashDiscountDueDate, LocalDate toCashDiscountDueDate, LocalDate fromDeferralDate, LocalDate toDeferralDate, LocalDate fromClearingDate, LocalDate toClearingDate) Function that can be applied to any entity object of this class.voidset_Messages(Collection<SAP__Message> _Messages) Constraints: Not nullablevoidsetCAApplicationArea(String cAApplicationArea) Constraints: Not nullable, Maximum length: 1voidsetContractAccount(String contractAccount) (Key Field) Constraints: Not nullable, Maximum length: 12voidsetContractAccountCategory(String contractAccountCategory) Constraints: Not nullable, Maximum length: 2voidsetContractAccountExtReference(String contractAccountExtReference) Constraints: Not nullable, Maximum length: 20voidsetContractAccountName(String contractAccountName) Constraints: Not nullable, Maximum length: 35voidOverwrites the list of associated ContractAccountPartner entities for the loaded navigation property _ContractAccountPartner.voidsetCreatedByUser(String createdByUser) Constraints: Not nullable, Maximum length: 12voidsetCreationDate(LocalDate creationDate) Constraints: NullablevoidsetIsMarkedForDeletion(Boolean isMarkedForDeletion) Constraints: Not nullablevoidsetLastChangeDate(LocalDate lastChangeDate) Constraints: NullablevoidsetLastChangedByUser(String lastChangedByUser) Constraints: Not nullable, Maximum length: 12toString()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 ContractAccount. -
CONTRACT_ACCOUNT
-
CREATION_DATE
-
CREATED_BY_USER
-
IS_MARKED_FOR_DELETION
-
LAST_CHANGE_DATE
-
LAST_CHANGED_BY_USER
-
CA_APPLICATION_AREA
-
CONTRACT_ACCOUNT_CATEGORY
-
CONTRACT_ACCOUNT_EXT_REFERENCE
-
CONTRACT_ACCOUNT_NAME
-
_MESSAGES
Use with available request builders to apply the SAP__Messages complex property to query operations. -
TO__CONTRACT_ACCOUNT_PARTNER
public static final NavigationProperty.Collection<ContractAccount,ContractAccountPartner> TO__CONTRACT_ACCOUNT_PARTNERUse with available request builders to apply the _ContractAccountPartner navigation property to query operations.
-
-
Constructor Details
-
ContractAccount
public ContractAccount() -
ContractAccount
public ContractAccount(@Nullable String contractAccount, @Nullable LocalDate creationDate, @Nullable String createdByUser, @Nullable Boolean isMarkedForDeletion, @Nullable LocalDate lastChangeDate, @Nullable String lastChangedByUser, @Nullable String cAApplicationArea, @Nullable String contractAccountCategory, @Nullable String contractAccountExtReference, @Nullable String contractAccountName, @Nullable Collection<SAP__Message> _Messages, List<ContractAccountPartner> to_ContractAccountPartner)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ContractAccount>
-
setContractAccount
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ContractAccount
- Parameters:
contractAccount- Contract Account
-
setCreationDate
Constraints: NullableOriginal property name from the Odata EDM: CreationDate
- Parameters:
creationDate- Creation Date
-
setCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Parameters:
createdByUser- Created By
-
setIsMarkedForDeletion
Constraints: Not nullableOriginal property name from the Odata EDM: IsMarkedForDeletion
- Parameters:
isMarkedForDeletion- Deletion Indicator
-
setLastChangeDate
Constraints: NullableOriginal property name from the Odata EDM: LastChangeDate
- Parameters:
lastChangeDate- Last Change Date
-
setLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Parameters:
lastChangedByUser- Name of Person Who Changed Object
-
setCAApplicationArea
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CAApplicationArea
- Parameters:
cAApplicationArea- Application area
-
setContractAccountCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ContractAccountCategory
- Parameters:
contractAccountCategory- Contract Account Category
-
setContractAccountExtReference
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ContractAccountExtReference
- Parameters:
contractAccountExtReference- Contract Account Number in Legacy System
-
setContractAccountName
Constraints: Not nullable, Maximum length: 35Original property name from the Odata EDM: ContractAccountName
- Parameters:
contractAccountName- Description of Contract Account
-
set_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Parameters:
_Messages- The _Messages to set.
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ContractAccount>
-
getKey
- Overrides:
getKeyin classVdmObject<ContractAccount>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ContractAccount>
-
fromMap
- Overrides:
fromMapin classVdmObject<ContractAccount>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ContractAccount>
-
getContractAccountPartnerIfPresent
@Nonnull public io.vavr.control.Option<List<ContractAccountPartner>> getContractAccountPartnerIfPresent()Retrieval of associated ContractAccountPartner entities (one to many). This corresponds to the OData navigation property _ContractAccountPartner.If the navigation property for an entity ContractAccount 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 _ContractAccountPartner is already loaded, the result
will contain the ContractAccountPartner entities. If not, an
Optionwith result stateemptyis returned.
-
setContractAccountPartner
Overwrites the list of associated ContractAccountPartner entities for the loaded navigation property _ContractAccountPartner.If the navigation property _ContractAccountPartner of a queried ContractAccount 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 ContractAccountPartner entities.
-
addContractAccountPartner
Adds elements to the list of associated ContractAccountPartner entities. This corresponds to the OData navigation property _ContractAccountPartner.If the navigation property _ContractAccountPartner of a queried ContractAccount 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 ContractAccountPartner entities.
-
retrieveAccountBalance
@Nonnull public static BoundFunction.SingleToCollection<ContractAccount,ContractAccountRetrieveAccountBalanceResult_Type> retrieveAccountBalance(@Nonnull String businessPartner, @Nonnull String cAContract, @Nonnull Boolean clearedDocItemsAreSelected, @Nonnull Boolean statisticalDocItemsAreSelected, @Nullable LocalDate docOpenItemReconstructionDate, @Nonnull Boolean instlmntPlnOriglDocItmsAreSeld, @Nonnull Boolean collvBillOriglDocItmsAreSeld, @Nonnull String cAMainTransaction, @Nonnull String cASubTransaction, @Nonnull String cAStatisticalItemCode, @Nonnull String cAClearingReason, @Nonnull String companyCode, @Nullable LocalDate fromDocumentDate, @Nullable LocalDate toDocumentDate, @Nullable LocalDate fromPostingDate, @Nullable LocalDate toPostingDate, @Nullable LocalDate fromNetDueDate, @Nullable LocalDate toNetDueDate, @Nullable LocalDate fromCashDiscountDueDate, @Nullable LocalDate toCashDiscountDueDate, @Nullable LocalDate fromDeferralDate, @Nullable LocalDate toDeferralDate, @Nullable LocalDate fromClearingDate, @Nullable LocalDate toClearingDate) Function that can be applied to any entity object of this class.- Parameters:
docOpenItemReconstructionDate- Constraints: NullableOriginal parameter name from the Odata EDM: DocOpenItemReconstructionDate
companyCode- Constraints: Not nullable, Maximum length: 4Original parameter name from the Odata EDM: CompanyCode
businessPartner- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: BusinessPartner
cAContract- Constraints: Not nullable, Maximum length: 20Original parameter name from the Odata EDM: CAContract
toDocumentDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToDocumentDate
cASubTransaction- Constraints: Not nullable, Maximum length: 4Original parameter name from the Odata EDM: CASubTransaction
fromNetDueDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromNetDueDate
fromPostingDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromPostingDate
fromDocumentDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromDocumentDate
toNetDueDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToNetDueDate
instlmntPlnOriglDocItmsAreSeld- Constraints: Not nullableOriginal parameter name from the Odata EDM: InstlmntPlnOriglDocItmsAreSeld
statisticalDocItemsAreSelected- Constraints: Not nullableOriginal parameter name from the Odata EDM: StatisticalDocItemsAreSelected
toCashDiscountDueDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToCashDiscountDueDate
cAStatisticalItemCode- Constraints: Not nullable, Maximum length: 1Original parameter name from the Odata EDM: CAStatisticalItemCode
fromClearingDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromClearingDate
cAClearingReason- Constraints: Not nullable, Maximum length: 2Original parameter name from the Odata EDM: CAClearingReason
fromCashDiscountDueDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromCashDiscountDueDate
toDeferralDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToDeferralDate
cAMainTransaction- Constraints: Not nullable, Maximum length: 4Original parameter name from the Odata EDM: CAMainTransaction
collvBillOriglDocItmsAreSeld- Constraints: Not nullableOriginal parameter name from the Odata EDM: CollvBillOriglDocItmsAreSeld
fromDeferralDate- Constraints: NullableOriginal parameter name from the Odata EDM: FromDeferralDate
toClearingDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToClearingDate
clearedDocItemsAreSelected- Constraints: Not nullableOriginal parameter name from the Odata EDM: ClearedDocItemsAreSelected
toPostingDate- Constraints: NullableOriginal parameter name from the Odata EDM: ToPostingDate
- Returns:
- Function object prepared with the given parameters to be applied to any entity object of this class.
To execute it use the
service.forEntity(entity).applyFunction(thisFunction)API.
-
builder
-
getContractAccount
(Key Field) Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: ContractAccount
- Returns:
- Contract Account
-
getCreationDate
Constraints: NullableOriginal property name from the Odata EDM: CreationDate
- Returns:
- Creation Date
-
getCreatedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: CreatedByUser
- Returns:
- Created By
-
getIsMarkedForDeletion
Constraints: Not nullableOriginal property name from the Odata EDM: IsMarkedForDeletion
- Returns:
- Deletion Indicator
-
getLastChangeDate
Constraints: NullableOriginal property name from the Odata EDM: LastChangeDate
- Returns:
- Last Change Date
-
getLastChangedByUser
Constraints: Not nullable, Maximum length: 12Original property name from the Odata EDM: LastChangedByUser
- Returns:
- Name of Person Who Changed Object
-
getCAApplicationArea
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: CAApplicationArea
- Returns:
- Application area
-
getContractAccountCategory
Constraints: Not nullable, Maximum length: 2Original property name from the Odata EDM: ContractAccountCategory
- Returns:
- Contract Account Category
-
getContractAccountExtReference
Constraints: Not nullable, Maximum length: 20Original property name from the Odata EDM: ContractAccountExtReference
- Returns:
- Contract Account Number in Legacy System
-
getContractAccountName
Constraints: Not nullable, Maximum length: 35Original property name from the Odata EDM: ContractAccountName
- Returns:
- Description of Contract Account
-
get_Messages
Constraints: Not nullableOriginal property name from the Odata EDM: SAP__Messages
- Returns:
- The _Messages contained in this
VdmEntity.
-
toString
- Overrides:
toStringin classVdmObject<ContractAccount>
-
equals
- Overrides:
equalsin classVdmEntity<ContractAccount>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ContractAccount>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ContractAccount>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ContractAccount>
-