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

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

Original entity name from the Odata EDM: SrcgProjQtnItemPaymentTerms_Type

  • Field Details

  • Constructor Details

    • SrcgProjQtnItemPaymentTerms

      public SrcgProjQtnItemPaymentTerms()
    • SrcgProjQtnItemPaymentTerms

      public SrcgProjQtnItemPaymentTerms(@Nullable UUID srcgProjQtnItmPaymentTermsUUID, @Nullable UUID sourcingProjectQuotationUUID, @Nullable UUID srcgProjQtnItemUUID, @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 SourcingProjectQuotation to_SourcingProjectQuotation, List<SrcgProjQtnAllowedPaytTrm> to_SrcgProjQtnAllowedPaytTrm, @Nullable SrcgProjQtnItem to_SrcgProjQuotationItem)
  • Method Details

    • getType

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

      public void setSrcgProjQtnItmPaymentTermsUUID(@Nullable UUID srcgProjQtnItmPaymentTermsUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItmPaymentTermsUUID

      Parameters:
      srcgProjQtnItmPaymentTermsUUID - UUID of Payment Term in Item in Sourcing Project
    • setSourcingProjectQuotationUUID

      public void setSourcingProjectQuotationUUID(@Nullable UUID sourcingProjectQuotationUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Parameters:
      sourcingProjectQuotationUUID - Supplier Quotation UUID
    • setSrcgProjQtnItemUUID

      public void setSrcgProjQtnItemUUID(@Nullable UUID srcgProjQtnItemUUID)
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Parameters:
      srcgProjQtnItemUUID - Supplier Quotation Item 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
    • getEntityCollection

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

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

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

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

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

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

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

      If the navigation property for an entity SrcgProjQtnItemPaymentTerms 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 _SourcingProjectQuotation is already loaded, the result will contain the SourcingProjectQuotation entity. If not, an Option with result state empty is returned.
    • setSourcingProjectQuotation

      public void setSourcingProjectQuotation(SourcingProjectQuotation value)
      Overwrites the associated SourcingProjectQuotation entity for the loaded navigation property _SourcingProjectQuotation.
      Parameters:
      value - New SourcingProjectQuotation entity.
    • getSrcgProjQtnAllowedPaytTrmIfPresent

      @Nonnull public io.vavr.control.Option<List<SrcgProjQtnAllowedPaytTrm>> getSrcgProjQtnAllowedPaytTrmIfPresent()
      Retrieval of associated SrcgProjQtnAllowedPaytTrm entities (one to many). This corresponds to the OData navigation property _SrcgProjQtnAllowedPaytTrm.

      If the navigation property for an entity SrcgProjQtnItemPaymentTerms 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 _SrcgProjQtnAllowedPaytTrm is already loaded, the result will contain the SrcgProjQtnAllowedPaytTrm entities. If not, an Option with result state empty is returned.
    • setSrcgProjQtnAllowedPaytTrm

      public void setSrcgProjQtnAllowedPaytTrm(@Nonnull List<SrcgProjQtnAllowedPaytTrm> value)
      Overwrites the list of associated SrcgProjQtnAllowedPaytTrm entities for the loaded navigation property _SrcgProjQtnAllowedPaytTrm.

      If the navigation property _SrcgProjQtnAllowedPaytTrm of a queried SrcgProjQtnItemPaymentTerms 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 SrcgProjQtnAllowedPaytTrm entities.
    • addSrcgProjQtnAllowedPaytTrm

      public void addSrcgProjQtnAllowedPaytTrm(SrcgProjQtnAllowedPaytTrm... entity)
      Adds elements to the list of associated SrcgProjQtnAllowedPaytTrm entities. This corresponds to the OData navigation property _SrcgProjQtnAllowedPaytTrm.

      If the navigation property _SrcgProjQtnAllowedPaytTrm of a queried SrcgProjQtnItemPaymentTerms 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 SrcgProjQtnAllowedPaytTrm entities.
    • getSrcgProjQuotationItemIfPresent

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

      If the navigation property for an entity SrcgProjQtnItemPaymentTerms 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 _SrcgProjQuotationItem is already loaded, the result will contain the SrcgProjQtnItem entity. If not, an Option with result state empty is returned.
    • setSrcgProjQuotationItem

      public void setSrcgProjQuotationItem(SrcgProjQtnItem value)
      Overwrites the associated SrcgProjQtnItem entity for the loaded navigation property _SrcgProjQuotationItem.
      Parameters:
      value - New SrcgProjQtnItem entity.
    • builder

    • getSrcgProjQtnItmPaymentTermsUUID

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

      Original property name from the Odata EDM: SrcgProjQtnItmPaymentTermsUUID

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

      @Nullable public UUID getSourcingProjectQuotationUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SourcingProjectQuotationUUID

      Returns:
      Supplier Quotation UUID
    • getSrcgProjQtnItemUUID

      @Nullable public UUID getSrcgProjQtnItemUUID()
      Constraints: Not nullable

      Original property name from the Odata EDM: SrcgProjQtnItemUUID

      Returns:
      Supplier Quotation Item 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
    • toString

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

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

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

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

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