Class Item


  • public final class Item
    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.
      • getName

        public java.util.Optional<java.lang.String> getName()
        Returns:
        The item's name.
      • getStatus

        public java.util.Optional<ItemStatus> getStatus()
        Returns:
        The item's status.
        • ACTIVE - ACTIVE
        • ARCHIVED - ARCHIVED
      • getUnitPrice

        public java.util.Optional<java.lang.Double> getUnitPrice()
        Returns:
        The item's unit price.
      • getPurchasePrice

        public java.util.Optional<java.lang.Double> getPurchasePrice()
        Returns:
        The price at which the item is purchased from a vendor.
      • getPurchaseAccount

        public java.util.Optional<ItemPurchaseAccount> getPurchaseAccount()
        Returns:
        References the default account used to record a purchase of the item.
      • getSalesAccount

        public java.util.Optional<ItemSalesAccount> getSalesAccount()
        Returns:
        References the default account used to record a sale.
      • getCompany

        public java.util.Optional<ItemCompany> getCompany()
        Returns:
        The company the item belongs to.
      • getPurchaseTaxRate

        public java.util.Optional<ItemPurchaseTaxRate> getPurchaseTaxRate()
        Returns:
        The default purchase tax rate for this item.
      • getSalesTaxRate

        public java.util.Optional<ItemSalesTaxRate> getSalesTaxRate()
        Returns:
        The default sales tax rate for this item.
      • getRemoteUpdatedAt

        public java.util.Optional<java.time.OffsetDateTime> getRemoteUpdatedAt()
        Returns:
        When the third party's item note was updated.
      • 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