Porting to SM/Delivery receipts (DOES NOT BUILD)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>