The Return represents a physical customer return, and contains 1..n
ReturnItems. The Return is associated with one ReturnCase, and each
ReturnItem is associated with one ReturnCaseItem and (via the
ReturnCaseItem) a single OrderItem usually representing an OrderProductLineItem.
The ReturnItem records the quantity returned.
The Return can have one of these status values:
NEW - the return is new, i.e. needs to undergo a check before it can be marked as COMPLETED
COMPLETED - the return is complete, this is a precondition for refunding the customer for a return.
Order post-processing APIs (gillian) are now inactive by default and will throw
an exception if accessed. Activation needs preliminary approval by Product Management.
Please contact support in this case. Existing customers using these APIs are not
affected by this change and can use the APIs until further notice.
Creates a new Invoice based on this Return.
The return-number will be used as the invoice-number. The
Invoice can then be accessed using getInvoice() or its
number using getInvoiceNumber(). The method must not be called
more than once for a Return, nor may 2 Invoices exist
with the same invoice-number.
The new Invoice is a credit-invoice with a Invoice.STATUS_NOT_PAID status, and
will be passed to the refund payment-hook in a separate database
transaction for processing.
Creates a new Invoice based on this Return. The
invoice-number must be specified as an argument. The
Invoice can then be accessed using getInvoice() or its
number using getInvoiceNumber(). The method must not be called
more than once for a Return, nor may 2 Invoices exist
with the same invoice-number.
The new Invoice is a credit-invoice with a Invoice.STATUS_NOT_PAID status, and
will be passed to the refund payment-hook in a separate database
transaction for processing.