|
@ -41,7 +41,11 @@ class NotificationPayload |
|
|
$instance->latestReceipt = $request->input('latest_receipt'); |
|
|
$instance->latestReceipt = $request->input('latest_receipt'); |
|
|
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('latest_receipt_info')); |
|
|
$instance->latestReceiptInfo = Receipt::createFromArray($request->input('latest_receipt_info')); |
|
|
$instance->latestExpiredReceipt = $request->input('latest_expired_receipt'); |
|
|
$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->latestExpiredReceiptInfo = Receipt::createFromArray($request->input('latest_expired_receipt_info')); |
|
|
|
|
|
} else { |
|
|
|
|
|
$instance->latestExpiredReceiptInfo = null; |
|
|
|
|
|
} |
|
|
$instance->autoRenewStatus = $request->input('auto_renew_status'); |
|
|
$instance->autoRenewStatus = $request->input('auto_renew_status'); |
|
|
$instance->autoRenewProductId = $request->input('auto_renew_product_id'); |
|
|
$instance->autoRenewProductId = $request->input('auto_renew_product_id'); |
|
|
$instance->autoRenewStatusChangeDate = $request->input('auto_renew_status_change_date'); |
|
|
$instance->autoRenewStatusChangeDate = $request->input('auto_renew_status_change_date'); |
|
|