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

public class CustomerWithHoldingTax extends VdmEntity<CustomerWithHoldingTax>
Withholding Tax

Original entity name from the Odata EDM: A_CustomerWithHoldingTaxType

  • Field Details

    • ALL_FIELDS

      public static final CustomerWithHoldingTaxSelectable ALL_FIELDS
      Selector for all available fields of CustomerWithHoldingTax.
    • CUSTOMER

      public static final CustomerWithHoldingTaxField<String> CUSTOMER
      Use with available fluent helpers to apply the Customer field to query operations.
    • COMPANY_CODE

      public static final CustomerWithHoldingTaxField<String> COMPANY_CODE
      Use with available fluent helpers to apply the CompanyCode field to query operations.
    • WITHHOLDING_TAX_TYPE

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

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

      public static final CustomerWithHoldingTaxField<Boolean> WITHHOLDING_TAX_AGENT
      Use with available fluent helpers to apply the WithholdingTaxAgent field to query operations.
    • OBLIGATION_DATE_BEGIN

      public static final CustomerWithHoldingTaxField<LocalDateTime> OBLIGATION_DATE_BEGIN
      Use with available fluent helpers to apply the ObligationDateBegin field to query operations.
    • OBLIGATION_DATE_END

      public static final CustomerWithHoldingTaxField<LocalDateTime> OBLIGATION_DATE_END
      Use with available fluent helpers to apply the ObligationDateEnd field to query operations.
    • WITHHOLDING_TAX_NUMBER

      public static final CustomerWithHoldingTaxField<String> WITHHOLDING_TAX_NUMBER
      Use with available fluent helpers to apply the WithholdingTaxNumber field to query operations.
    • WITHHOLDING_TAX_CERTIFICATE

      public static final CustomerWithHoldingTaxField<String> WITHHOLDING_TAX_CERTIFICATE
      Use with available fluent helpers to apply the WithholdingTaxCertificate field to query operations.
    • WITHHOLDING_TAX_EXMPT_PERCENT

      public static final CustomerWithHoldingTaxField<BigDecimal> WITHHOLDING_TAX_EXMPT_PERCENT
      Use with available fluent helpers to apply the WithholdingTaxExmptPercent field to query operations.
    • EXEMPTION_DATE_BEGIN

      public static final CustomerWithHoldingTaxField<LocalDateTime> EXEMPTION_DATE_BEGIN
      Use with available fluent helpers to apply the ExemptionDateBegin field to query operations.
    • EXEMPTION_DATE_END

      public static final CustomerWithHoldingTaxField<LocalDateTime> EXEMPTION_DATE_END
      Use with available fluent helpers to apply the ExemptionDateEnd field to query operations.
    • EXEMPTION_REASON

      public static final CustomerWithHoldingTaxField<String> EXEMPTION_REASON
      Use with available fluent helpers to apply the ExemptionReason field to query operations.
    • AUTHORIZATION_GROUP

      public static final CustomerWithHoldingTaxField<String> AUTHORIZATION_GROUP
      Use with available fluent helpers to apply the AuthorizationGroup field to query operations.
  • Constructor Details

    • CustomerWithHoldingTax

      public CustomerWithHoldingTax()
    • CustomerWithHoldingTax

      public CustomerWithHoldingTax(@Nullable String customer, @Nullable String companyCode, @Nullable String withholdingTaxType, @Nullable String withholdingTaxCode, @Nullable Boolean withholdingTaxAgent, @Nullable LocalDateTime obligationDateBegin, @Nullable LocalDateTime obligationDateEnd, @Nullable String withholdingTaxNumber, @Nullable String withholdingTaxCertificate, @Nullable BigDecimal withholdingTaxExmptPercent, @Nullable LocalDateTime exemptionDateBegin, @Nullable LocalDateTime exemptionDateEnd, @Nullable String exemptionReason, @Nullable String authorizationGroup)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Customer

      Parameters:
      customer - Customer Number
    • setCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Parameters:
      companyCode - Company Code
    • 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
    • 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
    • setWithholdingTaxAgent

      public void setWithholdingTaxAgent(@Nullable Boolean withholdingTaxAgent)
      Constraints: none

      Original property name from the Odata EDM: WithholdingTaxAgent

      Parameters:
      withholdingTaxAgent - Indicator: Withholding tax agent?
    • setObligationDateBegin

      public void setObligationDateBegin(@Nullable LocalDateTime obligationDateBegin)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ObligationDateBegin

      Parameters:
      obligationDateBegin - Obligated to withhold tax from
    • setObligationDateEnd

      public void setObligationDateEnd(@Nullable LocalDateTime obligationDateEnd)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ObligationDateEnd

      Parameters:
      obligationDateEnd - Obligated to withhold tax until
    • setWithholdingTaxNumber

      public void setWithholdingTaxNumber(@Nullable String withholdingTaxNumber)
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: WithholdingTaxNumber

      Parameters:
      withholdingTaxNumber - Withholding tax identification number
    • setWithholdingTaxCertificate

      public void setWithholdingTaxCertificate(@Nullable String withholdingTaxCertificate)
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: WithholdingTaxCertificate

      Parameters:
      withholdingTaxCertificate - Exemption certificate number
    • setWithholdingTaxExmptPercent

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

      Original property name from the Odata EDM: WithholdingTaxExmptPercent

      Parameters:
      withholdingTaxExmptPercent - Exemption rate
    • setExemptionDateBegin

      public void setExemptionDateBegin(@Nullable LocalDateTime exemptionDateBegin)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ExemptionDateBegin

      Parameters:
      exemptionDateBegin - Date on which exemption begins
    • setExemptionDateEnd

      public void setExemptionDateEnd(@Nullable LocalDateTime exemptionDateEnd)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ExemptionDateEnd

      Parameters:
      exemptionDateEnd - Date on which exemption ends
    • setExemptionReason

      public void setExemptionReason(@Nullable String exemptionReason)
      Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: ExemptionReason

      Parameters:
      exemptionReason - Reason for exemption
    • setAuthorizationGroup

      public void setAuthorizationGroup(@Nullable String authorizationGroup)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: AuthorizationGroup

      Parameters:
      authorizationGroup - Authorization Group
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> CustomerWithHoldingTaxField<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> CustomerWithHoldingTaxField<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<CustomerWithHoldingTax>
    • setServicePathForFetch

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

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

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

      @Nonnull public static CustomerWithHoldingTax.CustomerWithHoldingTaxBuilder builder()
    • getCustomer

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

      Original property name from the Odata EDM: Customer

      Returns:
      Customer Number
    • getCompanyCode

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

      Original property name from the Odata EDM: CompanyCode

      Returns:
      Company Code
    • 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
    • getWithholdingTaxCode

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

      Original property name from the Odata EDM: WithholdingTaxCode

      Returns:
      Withholding tax code
    • getWithholdingTaxAgent

      @Nullable public Boolean getWithholdingTaxAgent()
      Constraints: none

      Original property name from the Odata EDM: WithholdingTaxAgent

      Returns:
      Indicator: Withholding tax agent?
    • getObligationDateBegin

      @Nullable public LocalDateTime getObligationDateBegin()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ObligationDateBegin

      Returns:
      Obligated to withhold tax from
    • getObligationDateEnd

      @Nullable public LocalDateTime getObligationDateEnd()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ObligationDateEnd

      Returns:
      Obligated to withhold tax until
    • getWithholdingTaxNumber

      @Nullable public String getWithholdingTaxNumber()
      Constraints: Not nullable, Maximum length: 16

      Original property name from the Odata EDM: WithholdingTaxNumber

      Returns:
      Withholding tax identification number
    • getWithholdingTaxCertificate

      @Nullable public String getWithholdingTaxCertificate()
      Constraints: Not nullable, Maximum length: 25

      Original property name from the Odata EDM: WithholdingTaxCertificate

      Returns:
      Exemption certificate number
    • getWithholdingTaxExmptPercent

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

      Original property name from the Odata EDM: WithholdingTaxExmptPercent

      Returns:
      Exemption rate
    • getExemptionDateBegin

      @Nullable public LocalDateTime getExemptionDateBegin()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ExemptionDateBegin

      Returns:
      Date on which exemption begins
    • getExemptionDateEnd

      @Nullable public LocalDateTime getExemptionDateEnd()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ExemptionDateEnd

      Returns:
      Date on which exemption ends
    • getExemptionReason

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

      Original property name from the Odata EDM: ExemptionReason

      Returns:
      Reason for exemption
    • getAuthorizationGroup

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

      Original property name from the Odata EDM: AuthorizationGroup

      Returns:
      Authorization Group
    • toString

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

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

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

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