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

public class MarketingDetail extends VdmEntity<MarketingDetail> implements VdmEntitySet
Revenue Accounting Marketing details

Original entity name from the Odata EDM: MarketingDetail_Type

  • Field Details

  • Constructor Details

  • Method Details

    • getType

      @Nonnull public Class<MarketingDetail> getType()
      Specified by:
      getType in class VdmObject<MarketingDetail>
    • 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
    • setMarketingType

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

      Original property name from the Odata EDM: MarketingType

      Parameters:
      marketingType - Marketing type code
    • setNetInternalMarketingAmt

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

      Original property name from the Odata EDM: NetInternalMarketingAmt

      Parameters:
      netInternalMarketingAmt - Net Marketing Cost - Internal
    • setNetExternalMarketingAmt

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

      Original property name from the Odata EDM: NetExternalMarketingAmt

      Parameters:
      netExternalMarketingAmt - Net Marketing Cost - External
    • setGrossInternalMarketingAmt

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

      Original property name from the Odata EDM: GrossInternalMarketingAmt

      Parameters:
      grossInternalMarketingAmt - Gross Marketing Cost - Internal
    • setGrossExternalMarketingAmt

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

      Original property name from the Odata EDM: GrossExternalMarketingAmt

      Parameters:
      grossExternalMarketingAmt - Gross Marketing Cost - External
    • setMarketingReimbursementAmount

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

      Original property name from the Odata EDM: MarketingReimbursementAmount

      Parameters:
      marketingReimbursementAmount - Net Marketing Cost Reimbursement
    • setGrossDdctdReimbmtAmount

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

      Original property name from the Odata EDM: GrossDdctdReimbmtAmount

      Parameters:
      grossDdctdReimbmtAmount - Gross Marketing Cost Reimbursement
    • 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<MarketingDetail>
    • getKey

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

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

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

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

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<MarketingDetail>
    • 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 MarketingDetail 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 MarketingDetail 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 MarketingDetail.MarketingDetailBuilder 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
    • getMarketingType

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

      Original property name from the Odata EDM: MarketingType

      Returns:
      Marketing type code
    • getNetInternalMarketingAmt

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

      Original property name from the Odata EDM: NetInternalMarketingAmt

      Returns:
      Net Marketing Cost - Internal
    • getNetExternalMarketingAmt

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

      Original property name from the Odata EDM: NetExternalMarketingAmt

      Returns:
      Net Marketing Cost - External
    • getGrossInternalMarketingAmt

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

      Original property name from the Odata EDM: GrossInternalMarketingAmt

      Returns:
      Gross Marketing Cost - Internal
    • getGrossExternalMarketingAmt

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

      Original property name from the Odata EDM: GrossExternalMarketingAmt

      Returns:
      Gross Marketing Cost - External
    • getMarketingReimbursementAmount

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

      Original property name from the Odata EDM: MarketingReimbursementAmount

      Returns:
      Net Marketing Cost Reimbursement
    • getGrossDdctdReimbmtAmount

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

      Original property name from the Odata EDM: GrossDdctdReimbmtAmount

      Returns:
      Gross Marketing Cost Reimbursement
    • 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<MarketingDetail>
    • equals

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

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

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

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