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

public class ContractAccount extends VdmEntity<ContractAccount> implements VdmEntitySet
Contract Account

Original entity name from the Odata EDM: ContractAccountType

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setContractAccount(@Nullable String contractAccount)
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ContractAccount

      Parameters:
      contractAccount - Contract Account
    • setCreationDate

      public void setCreationDate(@Nullable LocalDate creationDate)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Parameters:
      creationDate - Creation Date
    • setCreatedByUser

      public void setCreatedByUser(@Nullable String createdByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Created By
    • setIsMarkedForDeletion

      public void setIsMarkedForDeletion(@Nullable Boolean isMarkedForDeletion)
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Parameters:
      isMarkedForDeletion - Deletion Indicator
    • setLastChangeDate

      public void setLastChangeDate(@Nullable LocalDate lastChangeDate)
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDate

      Parameters:
      lastChangeDate - Last Change Date
    • setLastChangedByUser

      public void setLastChangedByUser(@Nullable String lastChangedByUser)
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Name of Person Who Changed Object
    • setCAApplicationArea

      public void setCAApplicationArea(@Nullable String cAApplicationArea)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CAApplicationArea

      Parameters:
      cAApplicationArea - Application area
    • setContractAccountCategory

      public void setContractAccountCategory(@Nullable String contractAccountCategory)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ContractAccountCategory

      Parameters:
      contractAccountCategory - Contract Account Category
    • setContractAccountExtReference

      public void setContractAccountExtReference(@Nullable String contractAccountExtReference)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ContractAccountExtReference

      Parameters:
      contractAccountExtReference - Contract Account Number in Legacy System
    • setContractAccountName

      public void setContractAccountName(@Nullable String contractAccountName)
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ContractAccountName

      Parameters:
      contractAccountName - Description of Contract Account
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<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 Option result state will be empty.

      Returns:
      If the information for navigation property _ContractAccountPartner is already loaded, the result will contain the ContractAccountPartner entities. If not, an Option with result state empty is returned.
    • setContractAccountPartner

      public void setContractAccountPartner(@Nonnull List<ContractAccountPartner> value)
      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

      public void addContractAccountPartner(ContractAccountPartner... entity)
      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: Nullable

      Original parameter name from the Odata EDM: DocOpenItemReconstructionDate

      companyCode - Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: CompanyCode

      businessPartner - Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: BusinessPartner

      cAContract - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: CAContract

      toDocumentDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ToDocumentDate

      cASubTransaction - Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: CASubTransaction

      fromNetDueDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromNetDueDate

      fromPostingDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromPostingDate

      fromDocumentDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromDocumentDate

      toNetDueDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ToNetDueDate

      instlmntPlnOriglDocItmsAreSeld - Constraints: Not nullable

      Original parameter name from the Odata EDM: InstlmntPlnOriglDocItmsAreSeld

      statisticalDocItemsAreSelected - Constraints: Not nullable

      Original parameter name from the Odata EDM: StatisticalDocItemsAreSelected

      toCashDiscountDueDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ToCashDiscountDueDate

      cAStatisticalItemCode - Constraints: Not nullable, Maximum length: 1

      Original parameter name from the Odata EDM: CAStatisticalItemCode

      fromClearingDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromClearingDate

      cAClearingReason - Constraints: Not nullable, Maximum length: 2

      Original parameter name from the Odata EDM: CAClearingReason

      fromCashDiscountDueDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromCashDiscountDueDate

      toDeferralDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ToDeferralDate

      cAMainTransaction - Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: CAMainTransaction

      collvBillOriglDocItmsAreSeld - Constraints: Not nullable

      Original parameter name from the Odata EDM: CollvBillOriglDocItmsAreSeld

      fromDeferralDate - Constraints: Nullable

      Original parameter name from the Odata EDM: FromDeferralDate

      toClearingDate - Constraints: Nullable

      Original parameter name from the Odata EDM: ToClearingDate

      clearedDocItemsAreSelected - Constraints: Not nullable

      Original parameter name from the Odata EDM: ClearedDocItemsAreSelected

      toPostingDate - Constraints: Nullable

      Original 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

      @Nonnull public static ContractAccount.ContractAccountBuilder builder()
    • getContractAccount

      @Nullable public String getContractAccount()
      (Key Field) Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: ContractAccount

      Returns:
      Contract Account
    • getCreationDate

      @Nullable public LocalDate getCreationDate()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDate

      Returns:
      Creation Date
    • getCreatedByUser

      @Nullable public String getCreatedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By
    • getIsMarkedForDeletion

      @Nullable public Boolean getIsMarkedForDeletion()
      Constraints: Not nullable

      Original property name from the Odata EDM: IsMarkedForDeletion

      Returns:
      Deletion Indicator
    • getLastChangeDate

      @Nullable public LocalDate getLastChangeDate()
      Constraints: Nullable

      Original property name from the Odata EDM: LastChangeDate

      Returns:
      Last Change Date
    • getLastChangedByUser

      @Nullable public String getLastChangedByUser()
      Constraints: Not nullable, Maximum length: 12

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Name of Person Who Changed Object
    • getCAApplicationArea

      @Nullable public String getCAApplicationArea()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: CAApplicationArea

      Returns:
      Application area
    • getContractAccountCategory

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

      Original property name from the Odata EDM: ContractAccountCategory

      Returns:
      Contract Account Category
    • getContractAccountExtReference

      @Nullable public String getContractAccountExtReference()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: ContractAccountExtReference

      Returns:
      Contract Account Number in Legacy System
    • getContractAccountName

      @Nullable public String getContractAccountName()
      Constraints: Not nullable, Maximum length: 35

      Original property name from the Odata EDM: ContractAccountName

      Returns:
      Description of Contract Account
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

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

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

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

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

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