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

public class ContractMarketingDetail extends VdmEntity<ContractMarketingDetail> implements VdmEntitySet
PRA Contract Mktg Cost Detail CVew

Original entity name from the Odata EDM: ContractMarketingDetail_Type

  • Field Details

  • Constructor Details

    • ContractMarketingDetail

      public ContractMarketingDetail()
    • ContractMarketingDetail

      public ContractMarketingDetail(@Nullable String pRAContract, @Nullable String measurementPoint, @Nullable String well, @Nullable String wellCompletion, @Nullable String pRAMaterial, @Nullable LocalDate effectiveFromDate, @Nullable LocalDate effectiveToDate, @Nullable String contractMarketingCostControl, @Nullable String marketingType, @Nullable BigDecimal deductionReimbursementPercent, @Nullable String deductionReimbursementType, @Nullable String pRAVolumeBasisCode, @Nullable BigDecimal deductionReimbursementRateAmt, @Nullable String currency, @Nullable BigDecimal pRADdctdFixedAmount, @Nullable Boolean amountIsRecoupedFlag, @Nullable String methodTableCode, @Nullable String companyCode, @Nullable String creditPlantVenture, @Nullable String creditPlantDivisionOfInterest, @Nullable String createdByUser, @Nullable OffsetDateTime pRACreationDateTime, @Nullable ContractMarketingHeader to_PRAContrMktgCostCtrlHdrTP)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: PRAContract

      Parameters:
      pRAContract - Contract Number
    • setMeasurementPoint

      public void setMeasurementPoint(@Nullable String measurementPoint)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MeasurementPoint

      Parameters:
      measurementPoint - Measurement point number
    • setWell

      public void setWell(@Nullable String well)
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Well

      Parameters:
      well - Well ID number
    • setWellCompletion

      public void setWellCompletion(@Nullable String wellCompletion)
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: WellCompletion

      Parameters:
      wellCompletion - Well Completion Number
    • setPRAMaterial

      public void setPRAMaterial(@Nullable String pRAMaterial)
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: PRAMaterial

      Parameters:
      pRAMaterial - Material Number
    • setEffectiveFromDate

      public void setEffectiveFromDate(@Nullable LocalDate effectiveFromDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: EffectiveFromDate

      Parameters:
      effectiveFromDate - Effective from date
    • setEffectiveToDate

      public void setEffectiveToDate(@Nullable LocalDate effectiveToDate)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: EffectiveToDate

      Parameters:
      effectiveToDate - Effective To Date
    • setContractMarketingCostControl

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

      Original property name from the Odata EDM: ContractMarketingCostControl

      Parameters:
      contractMarketingCostControl - Contract Marketing Cost Control
    • 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
    • setDeductionReimbursementPercent

      public void setDeductionReimbursementPercent(@Nullable BigDecimal deductionReimbursementPercent)
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: DeductionReimbursementPercent

      Parameters:
      deductionReimbursementPercent - Deduction Reimbursement Percent
    • setDeductionReimbursementType

      public void setDeductionReimbursementType(@Nullable String deductionReimbursementType)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: DeductionReimbursementType

      Parameters:
      deductionReimbursementType - Deduction Reimbursement Code
    • setPRAVolumeBasisCode

      public void setPRAVolumeBasisCode(@Nullable String pRAVolumeBasisCode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: PRAVolumeBasisCode

      Parameters:
      pRAVolumeBasisCode - Volume Basis Code
    • setDeductionReimbursementRateAmt

      public void setDeductionReimbursementRateAmt(@Nullable BigDecimal deductionReimbursementRateAmt)
      Constraints: Not nullable, Precision: 11, Scale: 7

      Original property name from the Odata EDM: DeductionReimbursementRateAmt

      Parameters:
      deductionReimbursementRateAmt - Deduction Reimbursement Rate Amount
    • setCurrency

      public void setCurrency(@Nullable String currency)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: Currency

      Parameters:
      currency - Currency Key
    • setPRADdctdFixedAmount

      public void setPRADdctdFixedAmount(@Nullable BigDecimal pRADdctdFixedAmount)
      Constraints: Not nullable, Precision: 13, Scale: 0

      Original property name from the Odata EDM: PRADdctdFixedAmount

      Parameters:
      pRADdctdFixedAmount - Fixed amount
    • setAmountIsRecoupedFlag

      public void setAmountIsRecoupedFlag(@Nullable Boolean amountIsRecoupedFlag)
      Constraints: Not nullable

      Original property name from the Odata EDM: AmountIsRecoupedFlag

      Parameters:
      amountIsRecoupedFlag - Recoupment Flag
    • setMethodTableCode

      public void setMethodTableCode(@Nullable String methodTableCode)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MethodTableCode

      Parameters:
      methodTableCode - Method Table Code
    • setCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • setCreditPlantVenture

      public void setCreditPlantVenture(@Nullable String creditPlantVenture)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: CreditPlantVenture

      Parameters:
      creditPlantVenture - Credit Plant Venture
    • setCreditPlantDivisionOfInterest

      public void setCreditPlantDivisionOfInterest(@Nullable String creditPlantDivisionOfInterest)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CreditPlantDivisionOfInterest

      Parameters:
      creditPlantDivisionOfInterest - Credit Plant Division of Interest
    • setCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Parameters:
      createdByUser - Name of Person Responsible for Creating the Object
    • setPRACreationDateTime

      public void setPRACreationDateTime(@Nullable OffsetDateTime pRACreationDateTime)
      Constraints: Nullable

      Original property name from the Odata EDM: PRACreationDateTime

      Parameters:
      pRACreationDateTime - UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity ContractMarketingDetail 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 _PRAContrMktgCostCtrlHdrTP is already loaded, the result will contain the ContractMarketingHeader entity. If not, an Option with result state empty is returned.
    • setPRAContrMktgCostCtrlHdrTP

      public void setPRAContrMktgCostCtrlHdrTP(ContractMarketingHeader value)
      Overwrites the associated ContractMarketingHeader entity for the loaded navigation property _PRAContrMktgCostCtrlHdrTP.
      Parameters:
      value - New ContractMarketingHeader entity.
    • builder

    • getPRAContract

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

      Original property name from the Odata EDM: PRAContract

      Returns:
      Contract Number
    • getMeasurementPoint

      @Nullable public String getMeasurementPoint()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: MeasurementPoint

      Returns:
      Measurement point number
    • getWell

      @Nullable public String getWell()
      (Key Field) Constraints: Not nullable, Maximum length: 15

      Original property name from the Odata EDM: Well

      Returns:
      Well ID number
    • getWellCompletion

      @Nullable public String getWellCompletion()
      (Key Field) Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: WellCompletion

      Returns:
      Well Completion Number
    • getPRAMaterial

      @Nullable public String getPRAMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: PRAMaterial

      Returns:
      Material Number
    • getEffectiveFromDate

      @Nullable public LocalDate getEffectiveFromDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: EffectiveFromDate

      Returns:
      Effective from date
    • getEffectiveToDate

      @Nullable public LocalDate getEffectiveToDate()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: EffectiveToDate

      Returns:
      Effective To Date
    • getContractMarketingCostControl

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

      Original property name from the Odata EDM: ContractMarketingCostControl

      Returns:
      Contract Marketing Cost Control
    • 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
    • getDeductionReimbursementPercent

      @Nullable public BigDecimal getDeductionReimbursementPercent()
      Constraints: Not nullable, Precision: 5, Scale: 2

      Original property name from the Odata EDM: DeductionReimbursementPercent

      Returns:
      Deduction Reimbursement Percent
    • getDeductionReimbursementType

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

      Original property name from the Odata EDM: DeductionReimbursementType

      Returns:
      Deduction Reimbursement Code
    • getPRAVolumeBasisCode

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

      Original property name from the Odata EDM: PRAVolumeBasisCode

      Returns:
      Volume Basis Code
    • getDeductionReimbursementRateAmt

      @Nullable public BigDecimal getDeductionReimbursementRateAmt()
      Constraints: Not nullable, Precision: 11, Scale: 7

      Original property name from the Odata EDM: DeductionReimbursementRateAmt

      Returns:
      Deduction Reimbursement Rate Amount
    • getCurrency

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

      Original property name from the Odata EDM: Currency

      Returns:
      Currency Key
    • getPRADdctdFixedAmount

      @Nullable public BigDecimal getPRADdctdFixedAmount()
      Constraints: Not nullable, Precision: 13, Scale: 0

      Original property name from the Odata EDM: PRADdctdFixedAmount

      Returns:
      Fixed amount
    • getAmountIsRecoupedFlag

      @Nullable public Boolean getAmountIsRecoupedFlag()
      Constraints: Not nullable

      Original property name from the Odata EDM: AmountIsRecoupedFlag

      Returns:
      Recoupment Flag
    • getMethodTableCode

      @Nullable public String getMethodTableCode()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: MethodTableCode

      Returns:
      Method Table Code
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getCreditPlantVenture

      @Nullable public String getCreditPlantVenture()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: CreditPlantVenture

      Returns:
      Credit Plant Venture
    • getCreditPlantDivisionOfInterest

      @Nullable public String getCreditPlantDivisionOfInterest()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: CreditPlantDivisionOfInterest

      Returns:
      Credit Plant Division of Interest
    • getCreatedByUser

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

      Original property name from the Odata EDM: CreatedByUser

      Returns:
      Name of Person Responsible for Creating the Object
    • getPRACreationDateTime

      @Nullable public OffsetDateTime getPRACreationDateTime()
      Constraints: Nullable

      Original property name from the Odata EDM: PRACreationDateTime

      Returns:
      UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    • toString

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

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

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

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

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