Class RefundTransactionModel

java.lang.Object
net.avalara.avatax.rest.client.models.RefundTransactionModel

public class RefundTransactionModel extends Object
Refund a committed transaction
  • Constructor Details

    • RefundTransactionModel

      public RefundTransactionModel()
  • Method Details

    • getRefundTransactionCode

      public String getRefundTransactionCode()
      Getter for refundTransactionCode The transaction code for the refund. This code will be saved to the `ReturnInvoice` transaction, and does not need to match the code of the original sale.
    • setRefundTransactionCode

      public void setRefundTransactionCode(String value)
      Setter for refundTransactionCode The transaction code for the refund. This code will be saved to the `ReturnInvoice` transaction, and does not need to match the code of the original sale.
    • getRefundDate

      public Date getRefundDate()
      Getter for refundDate The date of the refund. For customers using Avalara's Managed Returns Service, this date controls the month in which the refund transaction will be reported on a tax filing.
    • setRefundDate

      public void setRefundDate(Date value)
      Setter for refundDate The date of the refund. For customers using Avalara's Managed Returns Service, this date controls the month in which the refund transaction will be reported on a tax filing.
    • getRefundType

      public RefundType getRefundType()
      Getter for refundType Type of this refund. To submit a full refund, specify `Full`. To refund only specific lines from the transaction, specify `Partial` and indicate the lines you wish to apply in the `refundLines` field. To refund the tax that was paid in the previous transaction, specify `TaxOnly`. To issue a percentage-based discount, specify `Percentage`.
    • setRefundType

      public void setRefundType(RefundType value)
      Setter for refundType Type of this refund. To submit a full refund, specify `Full`. To refund only specific lines from the transaction, specify `Partial` and indicate the lines you wish to apply in the `refundLines` field. To refund the tax that was paid in the previous transaction, specify `TaxOnly`. To issue a percentage-based discount, specify `Percentage`.
    • getRefundPercentage

      public BigDecimal getRefundPercentage()
      Getter for refundPercentage The percentage for refund. This value only applies if you choose `refundType = Percentage` or `refundType = Partial`.
    • setRefundPercentage

      public void setRefundPercentage(BigDecimal value)
      Setter for refundPercentage The percentage for refund. This value only applies if you choose `refundType = Percentage` or `refundType = Partial`.
    • getRefundLines

      public ArrayList<String> getRefundLines()
      Getter for refundLines If you chose a refund of type `Partial`, this indicates which lines from the original transaction are being refunded.
    • setRefundLines

      public void setRefundLines(ArrayList<String> value)
      Setter for refundLines If you chose a refund of type `Partial`, this indicates which lines from the original transaction are being refunded.
    • getReferenceCode

      public String getReferenceCode()
      Getter for referenceCode A user-defined reference field containing information about this refund.
    • setReferenceCode

      public void setReferenceCode(String value)
      Setter for referenceCode A user-defined reference field containing information about this refund.
    • toString

      public String toString()
      Returns a JSON string representation of RefundTransactionModel
      Overrides:
      toString in class Object