java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<CePuCoDistrdContrPaytTrms>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.centralpurchasecontract.CePuCoDistrdContrPaytTrms

public class CePuCoDistrdContrPaytTrms extends VdmEntity<CePuCoDistrdContrPaytTrms>
Distributed Payment Terms

Original entity name from the Odata EDM: A_CePuCoDistrdContrPaytTrmsType

  • Field Details

    • ALL_FIELDS

      public static final CePuCoDistrdContrPaytTrmsSelectable ALL_FIELDS
      Selector for all available fields of CePuCoDistrdContrPaytTrms.
    • CENTRAL_PURCHASE_CONTRACT

      public static final CePuCoDistrdContrPaytTrmsField<String> CENTRAL_PURCHASE_CONTRACT
      Use with available fluent helpers to apply the CentralPurchaseContract field to query operations.
    • EXT_CONTRACT_FOR_PURG

      public static final CePuCoDistrdContrPaytTrmsField<String> EXT_CONTRACT_FOR_PURG
      Use with available fluent helpers to apply the ExtContractForPurg field to query operations.
    • PROCUREMENT_HUB_SOURCE_SYSTEM

      public static final CePuCoDistrdContrPaytTrmsField<String> PROCUREMENT_HUB_SOURCE_SYSTEM
      Use with available fluent helpers to apply the ProcurementHubSourceSystem field to query operations.
    • PAYMENT_TERMS

      public static final CePuCoDistrdContrPaytTrmsField<String> PAYMENT_TERMS
      Use with available fluent helpers to apply the PaymentTerms field to query operations.
    • NET_PAYMENT_DAYS

      public static final CePuCoDistrdContrPaytTrmsField<BigDecimal> NET_PAYMENT_DAYS
      Use with available fluent helpers to apply the NetPaymentDays field to query operations.
    • CASH_DISCOUNT1_DAYS

      public static final CePuCoDistrdContrPaytTrmsField<BigDecimal> CASH_DISCOUNT1_DAYS
      Use with available fluent helpers to apply the CashDiscount1Days field to query operations.
    • CASH_DISCOUNT1_PERCENT

      public static final CePuCoDistrdContrPaytTrmsField<BigDecimal> CASH_DISCOUNT1_PERCENT
      Use with available fluent helpers to apply the CashDiscount1Percent field to query operations.
    • CASH_DISCOUNT2_DAYS

      public static final CePuCoDistrdContrPaytTrmsField<BigDecimal> CASH_DISCOUNT2_DAYS
      Use with available fluent helpers to apply the CashDiscount2Days field to query operations.
    • CASH_DISCOUNT2_PERCENT

      public static final CePuCoDistrdContrPaytTrmsField<BigDecimal> CASH_DISCOUNT2_PERCENT
      Use with available fluent helpers to apply the CashDiscount2Percent field to query operations.
  • Constructor Details

    • CePuCoDistrdContrPaytTrms

      public CePuCoDistrdContrPaytTrms()
    • CePuCoDistrdContrPaytTrms

      public CePuCoDistrdContrPaytTrms(@Nullable String centralPurchaseContract, @Nullable String extContractForPurg, @Nullable String procurementHubSourceSystem, @Nullable String paymentTerms, @Nullable BigDecimal netPaymentDays, @Nullable BigDecimal cashDiscount1Days, @Nullable BigDecimal cashDiscount1Percent, @Nullable BigDecimal cashDiscount2Days, @Nullable BigDecimal cashDiscount2Percent)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Parameters:
      centralPurchaseContract - Purchasing Document Number
    • setExtContractForPurg

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

      Original property name from the Odata EDM: ExtContractForPurg

      Parameters:
      extContractForPurg - Contract of External System
    • setProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Parameters:
      procurementHubSourceSystem - Logical System
    • 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
    • setNetPaymentDays

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

      Original property name from the Odata EDM: NetPaymentDays

      Parameters:
      netPaymentDays - Net Payment Terms Period
    • setCashDiscount1Days

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

      Original property name from the Odata EDM: CashDiscount1Days

      Parameters:
      cashDiscount1Days - Cash discount days 1
    • 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
    • setCashDiscount2Days

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

      Original property name from the Odata EDM: CashDiscount2Days

      Parameters:
      cashDiscount2Days - Cash discount days 2
    • 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
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CePuCoDistrdContrPaytTrmsField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      fieldName - The name of the extension field as returned by the OData service.
      fieldType - The Java type to use for the extension field when performing value comparisons.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> CePuCoDistrdContrPaytTrmsField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<CePuCoDistrdContrPaytTrms>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<CePuCoDistrdContrPaytTrms>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<CePuCoDistrdContrPaytTrms>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<CePuCoDistrdContrPaytTrms>
    • builder

    • getCentralPurchaseContract

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

      Original property name from the Odata EDM: CentralPurchaseContract

      Returns:
      Purchasing Document Number
    • getExtContractForPurg

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

      Original property name from the Odata EDM: ExtContractForPurg

      Returns:
      Contract of External System
    • getProcurementHubSourceSystem

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

      Original property name from the Odata EDM: ProcurementHubSourceSystem

      Returns:
      Logical System
    • getPaymentTerms

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

      Original property name from the Odata EDM: PaymentTerms

      Returns:
      Terms of Payment Key
    • getNetPaymentDays

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

      Original property name from the Odata EDM: NetPaymentDays

      Returns:
      Net Payment Terms Period
    • getCashDiscount1Days

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

      Original property name from the Odata EDM: CashDiscount1Days

      Returns:
      Cash discount days 1
    • 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
    • getCashDiscount2Days

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

      Original property name from the Odata EDM: CashDiscount2Days

      Returns:
      Cash discount days 2
    • 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
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<CePuCoDistrdContrPaytTrms>