The Appeasement represents a shopper request for an order credit.
Example: The buyer finds any problem with the products but he agrees to preserve them, if he would be compensated,
rather than return them.
The Appeasement contains 1..n appeasement items.
Each appeasement item is associated with one OrderItem usually representing an OrderProductLineItem.
An Appeasement can have one of these status values:
OPEN - the appeasement is open and appeasement items could be added to it
COMPLETED - the appeasement is complete and it is not allowed to add new items to it, this is a precondition for refunding the customer for an appeasement.
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 appeasement items corresponding to certain order items and adds them to the appeasement.
Parameters:
totalAmount - the appeasement amount corresponding to the provided order items; this amount is the net price when the order is net based and respectively - gross price when the order is gross based
orderItems - the order items for which appeasement items should be created
Creates a new Invoice based on this Appeasement. The appeasement-number
will be used as the invoice-number.
The method must not be called more than once for an Appeasement,
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
should be passed to the refund payment-hook in a separate database transaction for processing.
Creates a new Invoice based on this Appeasement. The
invoice-number must be specified as an argument.
The method must not be called more than once for an Appeasement,
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
should be passed to the refund payment-hook in a separate database transaction for processing.
Parameters:
invoiceNumber - the invoice-number to be used in the appeasement creation process