|
|
@ -75,15 +75,18 @@ class NotificationPayload |
|
|
|
$instance->cancellationDatePst = $request->input('cancellation_date_pst'); |
|
|
|
$instance->cancellationDateMs = $request->input('cancellation_date_ms'); |
|
|
|
$instance->webOrderLineItemId = $request->input('web_order_line_item_id'); |
|
|
|
$instance->latestReceipt = $request->input('latest_receipt'); |
|
|
|
if ($request->has('latest_receipt_info')) { |
|
|
|
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('latest_receipt_info')); |
|
|
|
|
|
|
|
$unified_receipt = $request->input('unified_receipt'); |
|
|
|
|
|
|
|
$instance->latestReceipt = $request->input('unified_receipt.latest_receipt'); |
|
|
|
if ($request->has('unified_receipt.latest_receipt_info')) { |
|
|
|
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_receipt_info')); |
|
|
|
} else { |
|
|
|
$instance->latestReceiptInfo = null; |
|
|
|
} |
|
|
|
$instance->latestExpiredReceipt = $request->input('latest_expired_receipt'); |
|
|
|
if ($request->has('latest_expired_receipt_info')) { |
|
|
|
$instance->latestExpiredReceiptInfo = Receipt::createFromArray($request->input('latest_expired_receipt_info')); |
|
|
|
$instance->latestExpiredReceipt = $request->input('unified_receipt.latest_expired_receipt'); |
|
|
|
if ($request->has('unified_receipt.latest_expired_receipt_info')) { |
|
|
|
$instance->latestExpiredReceiptInfo = Receipt::createFromArray($request->input('unified_receipt.latest_expired_receipt_info')); |
|
|
|
} else { |
|
|
|
$instance->latestExpiredReceiptInfo = null; |
|
|
|
} |
|
|
|