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

public class SuplrInvcHeaderWhldgTax extends VdmEntity<SuplrInvcHeaderWhldgTax>
Withholding Tax Data

Original entity name from the Odata EDM: A_SuplrInvcHeaderWhldgTaxType

  • Field Details

    • ALL_FIELDS

      public static final SuplrInvcHeaderWhldgTaxSelectable ALL_FIELDS
      Selector for all available fields of SuplrInvcHeaderWhldgTax.
    • SUPPLIER_INVOICE

      public static final SuplrInvcHeaderWhldgTaxField<String> SUPPLIER_INVOICE
      Use with available fluent helpers to apply the SupplierInvoice field to query operations.
    • FISCAL_YEAR

      public static final SuplrInvcHeaderWhldgTaxField<String> FISCAL_YEAR
      Use with available fluent helpers to apply the FiscalYear field to query operations.
    • WITHHOLDING_TAX_TYPE

      public static final SuplrInvcHeaderWhldgTaxField<String> WITHHOLDING_TAX_TYPE
      Use with available fluent helpers to apply the WithholdingTaxType field to query operations.
    • DOCUMENT_CURRENCY

      public static final SuplrInvcHeaderWhldgTaxField<String> DOCUMENT_CURRENCY
      Use with available fluent helpers to apply the DocumentCurrency field to query operations.
    • WITHHOLDING_TAX_CODE

      public static final SuplrInvcHeaderWhldgTaxField<String> WITHHOLDING_TAX_CODE
      Use with available fluent helpers to apply the WithholdingTaxCode field to query operations.
    • WITHHOLDING_TAX_BASE_AMOUNT

      public static final SuplrInvcHeaderWhldgTaxField<BigDecimal> WITHHOLDING_TAX_BASE_AMOUNT
      Use with available fluent helpers to apply the WithholdingTaxBaseAmount field to query operations.
    • MANUALLY_ENTERED_WHLDG_TAX_AMOUNT

      public static final SuplrInvcHeaderWhldgTaxField<BigDecimal> MANUALLY_ENTERED_WHLDG_TAX_AMOUNT
      Use with available fluent helpers to apply the ManuallyEnteredWhldgTaxAmount field to query operations.
  • Constructor Details

    • SuplrInvcHeaderWhldgTax

      public SuplrInvcHeaderWhldgTax()
    • SuplrInvcHeaderWhldgTax

      public SuplrInvcHeaderWhldgTax(@Nullable String supplierInvoice, @Nullable String fiscalYear, @Nullable String withholdingTaxType, @Nullable String documentCurrency, @Nullable String withholdingTaxCode, @Nullable BigDecimal withholdingTaxBaseAmount, @Nullable BigDecimal manuallyEnteredWhldgTaxAmount)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: SupplierInvoice

      Parameters:
      supplierInvoice - Document Number of an Invoice Document
    • setFiscalYear

      public void setFiscalYear(@Nullable String fiscalYear)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: FiscalYear

      Parameters:
      fiscalYear - Fiscal Year
    • setWithholdingTaxType

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

      Original property name from the Odata EDM: WithholdingTaxType

      Parameters:
      withholdingTaxType - Indicator for Withholding Tax Type
    • setDocumentCurrency

      public void setDocumentCurrency(@Nullable String documentCurrency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: DocumentCurrency

      Parameters:
      documentCurrency - Currency Key
    • setWithholdingTaxCode

      public void setWithholdingTaxCode(@Nullable String withholdingTaxCode)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: WithholdingTaxCode

      Parameters:
      withholdingTaxCode - Withholding tax code
    • setWithholdingTaxBaseAmount

      public void setWithholdingTaxBaseAmount(@Nullable BigDecimal withholdingTaxBaseAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: WithholdingTaxBaseAmount

      Parameters:
      withholdingTaxBaseAmount - Withholding Tax Base Amount in Document Currency
    • setManuallyEnteredWhldgTaxAmount

      public void setManuallyEnteredWhldgTaxAmount(@Nullable BigDecimal manuallyEnteredWhldgTaxAmount)
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ManuallyEnteredWhldgTaxAmount

      Parameters:
      manuallyEnteredWhldgTaxAmount - Withholding Tax Amount Entered Manually in Document Currency
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> SuplrInvcHeaderWhldgTaxField<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> SuplrInvcHeaderWhldgTaxField<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<SuplrInvcHeaderWhldgTax>
    • setServicePathForFetch

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

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

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

    • getSupplierInvoice

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

      Original property name from the Odata EDM: SupplierInvoice

      Returns:
      Document Number of an Invoice Document
    • getFiscalYear

      @Nullable public String getFiscalYear()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: FiscalYear

      Returns:
      Fiscal Year
    • getWithholdingTaxType

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

      Original property name from the Odata EDM: WithholdingTaxType

      Returns:
      Indicator for Withholding Tax Type
    • getDocumentCurrency

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

      Original property name from the Odata EDM: DocumentCurrency

      Returns:
      Currency Key
    • getWithholdingTaxCode

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

      Original property name from the Odata EDM: WithholdingTaxCode

      Returns:
      Withholding tax code
    • getWithholdingTaxBaseAmount

      @Nullable public BigDecimal getWithholdingTaxBaseAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: WithholdingTaxBaseAmount

      Returns:
      Withholding Tax Base Amount in Document Currency
    • getManuallyEnteredWhldgTaxAmount

      @Nullable public BigDecimal getManuallyEnteredWhldgTaxAmount()
      Constraints: Not nullable, Precision: 16, Scale: 3

      Original property name from the Odata EDM: ManuallyEnteredWhldgTaxAmount

      Returns:
      Withholding Tax Amount Entered Manually in Document Currency
    • toString

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

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

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

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