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

public class SrcgProjItemPaymentTerms extends VdmEntity<SrcgProjItemPaymentTerms> implements VdmEntitySet
Payment Terms for Item

Original entity name from the Odata EDM: SrcgProjItemPaymentTerms_Type

  • Field Details

  • Constructor Details

    • SrcgProjItemPaymentTerms

      public SrcgProjItemPaymentTerms()
    • SrcgProjItemPaymentTerms

      public SrcgProjItemPaymentTerms(@Nullable UUID srcgProjItemPaymentTermsUUID, @Nullable UUID sourcingProjectItemUUID, @Nullable UUID sourcingProjectUUID, @Nullable String plant, @Nullable String paymentTerms, @Nullable BigDecimal cashDiscount1Days, @Nullable BigDecimal cashDiscount2Days, @Nullable BigDecimal cashDiscount1Percent, @Nullable BigDecimal cashDiscount2Percent, @Nullable BigDecimal netPaymentDays, @Nullable String companyCode, @Nullable String procurementHubSourceSystem, @Nullable String sourcingOrigin, @Nullable String sourcingScenario, @Nullable SourcingProject to_SourcingProject, @Nullable SourcingProjectItem to_SourcingProjectItem)
  • Method Details

    • getType

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

      public void setSrcgProjItemPaymentTermsUUID(@Nullable UUID srcgProjItemPaymentTermsUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjItemPaymentTermsUUID

      Parameters:
      srcgProjItemPaymentTermsUUID - UUID of Payment Term in Item in Sourcing Project
    • setSourcingProjectItemUUID

      public void setSourcingProjectItemUUID(@Nullable UUID sourcingProjectItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Parameters:
      sourcingProjectItemUUID - Sourcing Project Item UUID
    • setSourcingProjectUUID

      public void setSourcingProjectUUID(@Nullable UUID sourcingProjectUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Parameters:
      sourcingProjectUUID - Sourcing Project UUID
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setPaymentTerms

      public void setPaymentTerms(@Nullable String paymentTerms)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: PaymentTerms

      Parameters:
      paymentTerms - Terms of Payment Key
    • setCashDiscount1Days

      public void setCashDiscount1Days(@Nullable BigDecimal cashDiscount1Days)
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: CashDiscount1Days

      Parameters:
      cashDiscount1Days - Cash discount days 1
    • setCashDiscount2Days

      public void setCashDiscount2Days(@Nullable BigDecimal cashDiscount2Days)
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: CashDiscount2Days

      Parameters:
      cashDiscount2Days - Cash discount days 2
    • setCashDiscount1Percent

      public void setCashDiscount1Percent(@Nullable BigDecimal cashDiscount1Percent)
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount1Percent

      Parameters:
      cashDiscount1Percent - Cash Discount Percentage 1
    • setCashDiscount2Percent

      public void setCashDiscount2Percent(@Nullable BigDecimal cashDiscount2Percent)
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount2Percent

      Parameters:
      cashDiscount2Percent - Cash Discount Percentage 2
    • setNetPaymentDays

      public void setNetPaymentDays(@Nullable BigDecimal netPaymentDays)
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: NetPaymentDays

      Parameters:
      netPaymentDays - Net Payment Terms Period
    • 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
    • setProcurementHubSourceSystem

      public void setProcurementHubSourceSystem(@Nullable String procurementHubSourceSystem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Connected System ID
    • setSourcingOrigin

      public void setSourcingOrigin(@Nullable String sourcingOrigin)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingOrigin

      Parameters:
      sourcingOrigin - Sourcing Origin
    • setSourcingScenario

      public void setSourcingScenario(@Nullable String sourcingScenario)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: SourcingScenario

      Parameters:
      sourcingScenario - Sourcing Integration Scenario
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjItemPaymentTerms 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 _SourcingProject is already loaded, the result will contain the SourcingProject entity. If not, an Option with result state empty is returned.
    • setSourcingProject

      public void setSourcingProject(SourcingProject value)
      Overwrites the associated SourcingProject entity for the loaded navigation property _SourcingProject.
      Parameters:
      value - New SourcingProject entity.
    • getSourcingProjectItemIfPresent

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

      If the navigation property for an entity SrcgProjItemPaymentTerms 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 _SourcingProjectItem is already loaded, the result will contain the SourcingProjectItem entity. If not, an Option with result state empty is returned.
    • setSourcingProjectItem

      public void setSourcingProjectItem(SourcingProjectItem value)
      Overwrites the associated SourcingProjectItem entity for the loaded navigation property _SourcingProjectItem.
      Parameters:
      value - New SourcingProjectItem entity.
    • builder

    • getSrcgProjItemPaymentTermsUUID

      @Nullable public UUID getSrcgProjItemPaymentTermsUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjItemPaymentTermsUUID

      Returns:
      UUID of Payment Term in Item in Sourcing Project
    • getSourcingProjectItemUUID

      @Nullable public UUID getSourcingProjectItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectItemUUID

      Returns:
      Sourcing Project Item UUID
    • getSourcingProjectUUID

      @Nullable public UUID getSourcingProjectUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectUUID

      Returns:
      Sourcing Project UUID
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getPaymentTerms

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

      Original property name from the Odata EDM: PaymentTerms

      Returns:
      Terms of Payment Key
    • getCashDiscount1Days

      @Nullable public BigDecimal getCashDiscount1Days()
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: CashDiscount1Days

      Returns:
      Cash discount days 1
    • getCashDiscount2Days

      @Nullable public BigDecimal getCashDiscount2Days()
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: CashDiscount2Days

      Returns:
      Cash discount days 2
    • getCashDiscount1Percent

      @Nullable public BigDecimal getCashDiscount1Percent()
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount1Percent

      Returns:
      Cash Discount Percentage 1
    • getCashDiscount2Percent

      @Nullable public BigDecimal getCashDiscount2Percent()
      Constraints: Not nullable, Precision: 5, Scale: 3

      Original property name from the Odata EDM: CashDiscount2Percent

      Returns:
      Cash Discount Percentage 2
    • getNetPaymentDays

      @Nullable public BigDecimal getNetPaymentDays()
      Constraints: Not nullable, Precision: 3

      Original property name from the Odata EDM: NetPaymentDays

      Returns:
      Net Payment Terms Period
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • getProcurementHubSourceSystem

      @Nullable public String getProcurementHubSourceSystem()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Connected System ID
    • getSourcingOrigin

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

      Original property name from the Odata EDM: SourcingOrigin

      Returns:
      Sourcing Origin
    • getSourcingScenario

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

      Original property name from the Odata EDM: SourcingScenario

      Returns:
      Sourcing Integration Scenario
    • toString

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

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

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

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

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