Class RefundTransactionModel
java.lang.Object
net.avalara.avatax.rest.client.models.RefundTransactionModel
Refund a committed transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for referenceCode A user-defined reference field containing information about this refund.Getter for refundDate The date of the refund.Getter for refundLines If you chose a refund of type `Partial`, this indicates which lines from the original transaction are being refunded.Getter for refundPercentage The percentage for refund.Getter for refundTransactionCode The transaction code for the refund.Getter for refundType Type of this refund.void
setReferenceCode
(String value) Setter for referenceCode A user-defined reference field containing information about this refund.void
setRefundDate
(Date value) Setter for refundDate The date of the refund.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.void
setRefundPercentage
(BigDecimal value) Setter for refundPercentage The percentage for refund.void
setRefundTransactionCode
(String value) Setter for refundTransactionCode The transaction code for the refund.void
setRefundType
(RefundType value) Setter for refundType Type of this refund.toString()
Returns a JSON string representation of RefundTransactionModel
-
Constructor Details
-
RefundTransactionModel
public RefundTransactionModel()
-
-
Method Details
-
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
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
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
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
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
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
Getter for refundPercentage The percentage for refund. This value only applies if you choose `refundType = Percentage` or `refundType = Partial`. -
setRefundPercentage
Setter for refundPercentage The percentage for refund. This value only applies if you choose `refundType = Percentage` or `refundType = Partial`. -
getRefundLines
Getter for refundLines If you chose a refund of type `Partial`, this indicates which lines from the original transaction are being refunded. -
setRefundLines
Setter for refundLines If you chose a refund of type `Partial`, this indicates which lines from the original transaction are being refunded. -
getReferenceCode
Getter for referenceCode A user-defined reference field containing information about this refund. -
setReferenceCode
Setter for referenceCode A user-defined reference field containing information about this refund. -
toString
Returns a JSON string representation of RefundTransactionModel
-