Class TaxRate


  • public final class TaxRate
    extends java.lang.Object
    • Method Detail

      • getId

        public java.util.Optional<java.lang.String> getId()
      • getRemoteId

        public java.util.Optional<java.lang.String> getRemoteId()
        Returns:
        The third-party API ID of the matching object.
      • getCreatedAt

        public java.util.Optional<java.time.OffsetDateTime> getCreatedAt()
        Returns:
        The datetime that this object was created by Merge.
      • getModifiedAt

        public java.util.Optional<java.time.OffsetDateTime> getModifiedAt()
        Returns:
        The datetime that this object was modified by Merge.
      • getCompany

        public java.util.Optional<TaxRateCompany> getCompany()
        Returns:
        The subsidiary that the tax rate belongs to (in the case of multi-entity systems).
      • getCode

        public java.util.Optional<java.lang.String> getCode()
        Returns:
        The tax code associated with this tax rate or group of tax rates from the third-party platform.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The tax rate’s name.
      • getDescription

        public java.util.Optional<java.lang.String> getDescription()
        Returns:
        The tax rate's description.
      • getStatus

        public java.util.Optional<TaxRateStatus> getStatus()
        Returns:
        The tax rate’s status - ACTIVE if an active tax rate, ARCHIVED if not active.
        • ACTIVE - ACTIVE
        • ARCHIVED - ARCHIVED
      • getCountry

        public java.util.Optional<java.lang.String> getCountry()
        Returns:
        The country the tax rate is associated with.
      • getTotalTaxRate

        public java.util.Optional<java.lang.Double> getTotalTaxRate()
        Returns:
        The tax’s total tax rate - sum of the tax components (not compounded).
      • getEffectiveTaxRate

        public java.util.Optional<java.lang.Double> getEffectiveTaxRate()
        Returns:
        The tax rate’s effective tax rate - total amount of tax with compounding.
      • getTaxComponents

        public java.util.Optional<java.util.List<TaxRateTaxComponentsItem>> getTaxComponents()
        Returns:
        The related tax components of the tax rate.
      • getRemoteWasDeleted

        public java.util.Optional<java.lang.Boolean> getRemoteWasDeleted()
        Returns:
        Indicates whether or not this object has been deleted in the third party platform. Full coverage deletion detection is a premium add-on. Native deletion detection is offered for free with limited coverage. Learn more.
      • getFieldMappings

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getFieldMappings()
      • getRemoteData

        public java.util.Optional<java.util.List<RemoteData>> getRemoteData()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object