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

public class DeductDetail extends VdmEntity<DeductDetail> implements VdmEntitySet
Revenue Accounting Deduct details

Original entity name from the Odata EDM: DeductDetail_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

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

      public void setCompanyCode(@Nullable String companyCode)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setPRAAccountingPeriod

      public void setPRAAccountingPeriod(@Nullable String pRAAccountingPeriod)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PRAAccountingPeriod

      Parameters:
      pRAAccountingPeriod - PRA Accounting Period
    • setAccountingDocument

      public void setAccountingDocument(@Nullable String accountingDocument)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AccountingDocument

      Parameters:
      accountingDocument - Revenue Accounting Document Number
    • setPRAAccountingDocumentLine

      public void setPRAAccountingDocumentLine(@Nullable String pRAAccountingDocumentLine)
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PRAAccountingDocumentLine

      Parameters:
      pRAAccountingDocumentLine - Accounting Document Line Number
    • setDeductionType

      public void setDeductionType(@Nullable String deductionType)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DeductionType

      Parameters:
      deductionType - Other Deduction Type Codes
    • setOtherDeductionAmount

      public void setOtherDeductionAmount(@Nullable BigDecimal otherDeductionAmount)
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: OtherDeductionAmount

      Parameters:
      otherDeductionAmount - Other deducts amount
    • setCompanyCodeCurrency

      public void setCompanyCodeCurrency(@Nullable String companyCodeCurrency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CompanyCodeCurrency

      Parameters:
      companyCodeCurrency - Currency Key
    • 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
    • setCreationDateTime

      public void setCreationDateTime(@Nullable OffsetDateTime creationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Parameters:
      creationDateTime - Created On Timestamp
    • setLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Parameters:
      lastChangedByUser - Changed By
    • setChangedDateTime

      public void setChangedDateTime(@Nullable OffsetDateTime changedDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: ChangedDateTime

      Parameters:
      changedDateTime - Changed On Timestamp
    • getEntityCollection

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

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<DeductDetail>
    • getPRAAccountingDocumentHeaderIfPresent

      @Nonnull public io.vavr.control.Option<RevenueAccountingHeader> getPRAAccountingDocumentHeaderIfPresent()
      Retrieval of associated RevenueAccountingHeader entity (one to one). This corresponds to the OData navigation property _PRAAccountingDocumentHeader.

      If the navigation property for an entity DeductDetail 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 _PRAAccountingDocumentHeader is already loaded, the result will contain the RevenueAccountingHeader entity. If not, an Option with result state empty is returned.
    • setPRAAccountingDocumentHeader

      public void setPRAAccountingDocumentHeader(RevenueAccountingHeader value)
      Overwrites the associated RevenueAccountingHeader entity for the loaded navigation property _PRAAccountingDocumentHeader.
      Parameters:
      value - New RevenueAccountingHeader entity.
    • getPRAAcctgDocDetailIfPresent

      @Nonnull public io.vavr.control.Option<RevenueAccountingItems> getPRAAcctgDocDetailIfPresent()
      Retrieval of associated RevenueAccountingItems entity (one to one). This corresponds to the OData navigation property _PRAAcctgDocDetail.

      If the navigation property for an entity DeductDetail 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 _PRAAcctgDocDetail is already loaded, the result will contain the RevenueAccountingItems entity. If not, an Option with result state empty is returned.
    • setPRAAcctgDocDetail

      public void setPRAAcctgDocDetail(RevenueAccountingItems value)
      Overwrites the associated RevenueAccountingItems entity for the loaded navigation property _PRAAcctgDocDetail.
      Parameters:
      value - New RevenueAccountingItems entity.
    • builder

      @Nonnull public static DeductDetail.DeductDetailBuilder builder()
    • getCompanyCode

      @Nullable public String getCompanyCode()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getPRAAccountingPeriod

      @Nullable public String getPRAAccountingPeriod()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: PRAAccountingPeriod

      Returns:
      PRA Accounting Period
    • getAccountingDocument

      @Nullable public String getAccountingDocument()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: AccountingDocument

      Returns:
      Revenue Accounting Document Number
    • getPRAAccountingDocumentLine

      @Nullable public String getPRAAccountingDocumentLine()
      (Key Field) Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: PRAAccountingDocumentLine

      Returns:
      Accounting Document Line Number
    • getDeductionType

      @Nullable public String getDeductionType()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: DeductionType

      Returns:
      Other Deduction Type Codes
    • getOtherDeductionAmount

      @Nullable public BigDecimal getOtherDeductionAmount()
      Constraints: Not nullable, Precision: 15, Scale: 0

      Original property name from the Odata EDM: OtherDeductionAmount

      Returns:
      Other deducts amount
    • getCompanyCodeCurrency

      @Nullable public String getCompanyCodeCurrency()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: CompanyCodeCurrency

      Returns:
      Currency Key
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Created By
    • getCreationDateTime

      @Nullable public OffsetDateTime getCreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: CreationDateTime

      Returns:
      Created On Timestamp
    • getLastChangedByUser

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

      Original property name from the Odata EDM: LastChangedByUser

      Returns:
      Changed By
    • getChangedDateTime

      @Nullable public OffsetDateTime getChangedDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: ChangedDateTime

      Returns:
      Changed On Timestamp
    • toString

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

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

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

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

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