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