$object->getId(), 'billNo' => $object->getBillNo(), 'type' => $object->getType(), 'status' => $object->getStatus(), ]; } /** * @return array */ protected function rules(): array { return [ 'id' => 'required', 'type' => ['required', 'numeric', 'in:'.TransactionType::STORAGE_INVOICE], //Only storage invoice (type 16) can be waived 'status' => ['required', 'numeric', 'in:'.ApprovalStatus::APPROVED], //Approve storage invoice only, paid invoice stricly forbidden // 'billNo' => 'required', ]; } /** * @return array */ protected function messages(): array { return []; } }