Class JpaReturnAuthorizationItem

  • All Implemented Interfaces:
    com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware, Serializable

    @Entity
    public class JpaReturnAuthorizationItem
    extends Object
    implements Serializable, com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
    JPA-specific persisted-domain counterpart of ReturnAuthorizationItem.

    This is managed through JpaReturnAuthorization.getItems().

    See JpaReturnAuthorization's ModelMapperMappable implementation for mappings between the JPA and business-domain of this entity.

    Author:
    Samarth Dhruva (samarthd)
    See Also:
    Serialized Form
    • Constructor Detail

      • JpaReturnAuthorizationItem

        public JpaReturnAuthorizationItem()
    • Method Detail

      • getBusinessDomainType

        public Class<?> getBusinessDomainType()
        Specified by:
        getBusinessDomainType in interface com.broadleafcommerce.data.tracking.core.mapping.BusinessTypeAware
      • setEstimatedMerchandiseTotalToRefund

        public void setEstimatedMerchandiseTotalToRefund​(javax.money.MonetaryAmount estimatedMerchandiseTotalToRefund)
      • getEstimatedMerchandiseTotalToRefund

        public javax.money.MonetaryAmount getEstimatedMerchandiseTotalToRefund()
      • setEstimatedFulfillmentTotalToRefund

        public void setEstimatedFulfillmentTotalToRefund​(javax.money.MonetaryAmount estimatedFulfillmentTotalToRefund)
      • getEstimatedFulfillmentTotalToRefund

        public javax.money.MonetaryAmount getEstimatedFulfillmentTotalToRefund()
      • setEstimatedTaxTotalToRefund

        public void setEstimatedTaxTotalToRefund​(javax.money.MonetaryAmount estimatedTaxTotalToRefund)
      • getEstimatedTaxTotalToRefund

        public javax.money.MonetaryAmount getEstimatedTaxTotalToRefund()
      • setEstimatedTotalToRefund

        public void setEstimatedTotalToRefund​(javax.money.MonetaryAmount estimatedTotalToRefund)
      • getEstimatedTotalToRefund

        public javax.money.MonetaryAmount getEstimatedTotalToRefund()
      • get_id

        public String get_id()
        The JPA primary key.
        Returns:
        the jpa primary key
      • getReturnAuthorization

        public JpaReturnAuthorization getReturnAuthorization()
        A reference to the return authorization this item belongs to.
      • getOrderFulfillmentItemId

        public String getOrderFulfillmentItemId()
        See Also:
        ReturnAuthorizationItem.getOrderFulfillmentItemId()
      • getQuantity

        public int getQuantity()
        See Also:
        ReturnAuthorizationItem.getQuantity()
      • getPrimaryReturnReason

        public String getPrimaryReturnReason()
        See Also:
        ReturnAuthorizationItem.getPrimaryReturnReason()
      • getSecondaryReturnReason

        public String getSecondaryReturnReason()
        See Also:
        ReturnAuthorizationItem.getSecondaryReturnReason()
      • getExpectedCondition

        public String getExpectedCondition()
        See Also:
        ReturnAuthorizationItem.getExpectedCondition()
      • getReturnType

        public String getReturnType()
        See Also:
        ReturnAuthorizationItem.getReturnType()
      • getNote

        @Nullable
        public String getNote()
        See Also:
        ReturnAuthorizationItem.getNote()
      • getCurrency

        public javax.money.CurrencyUnit getCurrency()
        The currency that is used to convert between a MonetaryAmount and a BigDecimal value.

        The parent object will initialize this transient field prior to mapping between the business and persisted domains.

      • getConfirmations

        public List<JpaReturnConfirmation> getConfirmations()
        See Also:
        ReturnAuthorizationItem.getConfirmations()
      • set_id

        public void set_id​(String _id)
        The JPA primary key.
        Parameters:
        _id - the jpa primary key
      • setReturnAuthorization

        public void setReturnAuthorization​(JpaReturnAuthorization returnAuthorization)
        A reference to the return authorization this item belongs to.
      • setOrderFulfillmentItemId

        public void setOrderFulfillmentItemId​(String orderFulfillmentItemId)
        See Also:
        ReturnAuthorizationItem.getOrderFulfillmentItemId()
      • setQuantity

        public void setQuantity​(int quantity)
        See Also:
        ReturnAuthorizationItem.getQuantity()
      • setPrimaryReturnReason

        public void setPrimaryReturnReason​(String primaryReturnReason)
        See Also:
        ReturnAuthorizationItem.getPrimaryReturnReason()
      • setSecondaryReturnReason

        public void setSecondaryReturnReason​(String secondaryReturnReason)
        See Also:
        ReturnAuthorizationItem.getSecondaryReturnReason()
      • setExpectedCondition

        public void setExpectedCondition​(String expectedCondition)
        See Also:
        ReturnAuthorizationItem.getExpectedCondition()
      • setReturnType

        public void setReturnType​(String returnType)
        See Also:
        ReturnAuthorizationItem.getReturnType()
      • setNote

        public void setNote​(@Nullable
                            String note)
        See Also:
        ReturnAuthorizationItem.getNote()
      • setCurrency

        public void setCurrency​(javax.money.CurrencyUnit currency)
        The currency that is used to convert between a MonetaryAmount and a BigDecimal value.

        The parent object will initialize this transient field prior to mapping between the business and persisted domains.

      • setConfirmations

        public void setConfirmations​(List<JpaReturnConfirmation> confirmations)
        See Also:
        ReturnAuthorizationItem.getConfirmations()
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object